Class: Sandal::Sig::ES512
Overview
The ECDSA-SHA512 signing algorithm.
Constant Summary collapse
- NAME =
The JWA name of the algorithm.
"ES512"
- CURVE_NAME =
The ECDSA curve name.
"secp521r1"
Instance Attribute Summary
Attributes inherited from ES
Instance Method Summary collapse
-
#initialize(key) ⇒ ES512
constructor
Creates a new instance.
Methods inherited from ES
decode_asn1_signature, decode_jws_signature, encode_asn1_signature, encode_jws_signature, #sign, #valid?
Constructor Details
permalink #initialize(key) ⇒ ES512
Creates a new instance.
162 163 164 |
# File 'lib/sandal/sig/es.rb', line 162 def initialize(key) super(NAME, 512, 521, make_key(key, CURVE_NAME)) end |