class COSE::Algorithm::RSAPSS
Attributes
hash_function[R]
salt_length[R]
Public Class Methods
new(*args, hash_function:, salt_length:)
click to toggle source
Calls superclass method
# File lib/cose/algorithm/rsa_pss.rb, line 14 def initialize(*args, hash_function:, salt_length:) super(*args) @hash_function = hash_function @salt_length = salt_length end
Private Instance Methods
signature_algorithm_class()
click to toggle source
# File lib/cose/algorithm/rsa_pss.rb, line 27 def signature_algorithm_class OpenSSL::SignatureAlgorithm::RSAPSS end
to_pkey(key)
click to toggle source
# File lib/cose/algorithm/rsa_pss.rb, line 31 def to_pkey(key) case key when COSE::Key::RSA key.to_pkey when OpenSSL::PKey::RSA key else raise(COSE::Error, "Incompatible key for algorithm") end end
valid_key?(key)
click to toggle source
# File lib/cose/algorithm/rsa_pss.rb, line 23 def valid_key?(key) to_cose_key(key).is_a?(COSE::Key::RSA) end