Class: Sandal::Sig::ES512
Overview
The ECDSA-SHA512 signing algorithm.
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, #ensure_curve, #sign, #valid?
Constructor Details
#initialize(key) ⇒ ES512
Creates a new instance.
134 135 136 137 |
# File 'lib/sandal/sig/es.rb', line 134 def initialize(key) ensure_curve(key, 'secp521r1') super(512, 521, key) end |