Class: COSE::Algorithm::RSAPSS

Inherits:
SignatureAlgorithm show all
Defined in:
lib/cose/algorithm/rsa_pss.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#id, #name

Instance Method Summary collapse

Methods inherited from SignatureAlgorithm

#compatible_key?, #verify

Constructor Details

#initialize(*args, hash_function:, salt_length:) ⇒ RSAPSS

Returns a new instance of RSAPSS.



14
15
16
17
18
19
# 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

Instance Attribute Details

#hash_functionObject (readonly)

Returns the value of attribute hash_function.



12
13
14
# File 'lib/cose/algorithm/rsa_pss.rb', line 12

def hash_function
  @hash_function
end

#salt_lengthObject (readonly)

Returns the value of attribute salt_length.



12
13
14
# File 'lib/cose/algorithm/rsa_pss.rb', line 12

def salt_length
  @salt_length
end