Class: Linzer::RSAPSS::Key
- Inherits:
-
Key
- Object
- Key
- Linzer::RSAPSS::Key
show all
- Defined in:
- lib/linzer/rsa_pss.rb
Instance Attribute Summary
Attributes inherited from Key
#material
Instance Method Summary
collapse
Methods inherited from Key
#initialize, #key_id
Constructor Details
This class inherits a constructor from Linzer::Key
Instance Method Details
#sign(data) ⇒ Object
13
14
15
16
|
# File 'lib/linzer/rsa_pss.rb', line 13
def sign(data)
@material.sign(@params[:digest], data, signature_options)
end
|
#validate ⇒ Object
8
9
10
11
|
# File 'lib/linzer/rsa_pss.rb', line 8
def validate
super
validate_digest
end
|
#verify(signature, data) ⇒ Object
18
19
20
21
22
23
24
25
26
27
|
# File 'lib/linzer/rsa_pss.rb', line 18
def verify(signature, data)
return true if @material.verify(
@params[:digest],
signature,
data,
signature_options
)
false
end
|