Module: Linzer::Verifier

Extended by:
Common
Defined in:
lib/linzer/verifier.rb

Class Method Summary collapse

Methods included from Common

signature_base, validate_components, validate_uniqueness

Class Method Details

.verify(key, message, signature) ⇒ Object



8
9
10
11
12
13
14
15
16
17
# File 'lib/linzer/verifier.rb', line 8

def verify(key, message, signature)
  validate message, key, signature

  parameters = signature.parameters
  components = signature.components

  signature_base = signature_base(message, components, parameters)

  verify_or_fail key, signature.value, signature_base
end