Class: Sandal::Sig::ES256
Overview
The ECDSA-SHA256 signing algorithm.
Instance Attribute Summary
Attributes inherited from ES
Instance Method Summary collapse
-
#initialize(key) ⇒ ES256
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) ⇒ ES256
Creates a new instance.
110 111 112 113 |
# File 'lib/sandal/sig/es.rb', line 110 def initialize(key) ensure_curve(key, 'prime256v1') super(256, 256, key) end |