Class: Sandal::Sig::RS512

Inherits:
RS
  • Object
show all
Defined in:
lib/sandal/sig/rs.rb

Overview

The RSA-SHA512 signing algorithm.

Instance Attribute Summary

Attributes inherited from RS

#name

Instance Method Summary collapse

Methods inherited from RS

#sign, #valid?

Constructor Details

#initialize(key) ⇒ RS512

Creates a new instance.

Parameters:

  • key (OpenSSL::PKey::RSA)

    The key to use for signing (private) or validation (public). This must be at least 2048 bits to be compliant with the JWA specification.



70
71
72
# File 'lib/sandal/sig/rs.rb', line 70

def initialize(key)
  super(512, key)
end