class Sandal::Sig::ES384

The ECDSA-SHA384 signing algorithm.

Constants

CURVE_NAME

The ECDSA curve name.

NAME

The JWA name of the algorithm.

Public Class Methods

new(key) click to toggle source

Creates a new instance.

@param key [OpenSSL::PKey::EC or String] The key to use for signing (private) or validation (public). If the

value is a String then it will be passed to the constructor of the EC class.

@raise [ArgumentError] The key is not in the “secp384r1” group.

Calls superclass method Sandal::Sig::ES::new
# File lib/sandal/sig/es.rb, line 143
def initialize(key)
  super(NAME, 384, 384, make_key(key, CURVE_NAME))
end