class Sandal::Sig::ES512

The ECDSA-SHA512 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 “secp521r1” group.

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