Class: Orthrus::SSH::PublicKey

Inherits:
Key
  • Object
show all
Defined in:
lib/orthrus/ssh/key.rb

Direct Known Subclasses

DSAPublicKey, RSAPublicKey

Instance Attribute Summary

Attributes inherited from Key

#comment, #key, #source

Instance Method Summary collapse

Methods inherited from Key

#==, #dsa?, #fingerprint, #initialize, #inspect, #rsa?

Constructor Details

This class inherits a constructor from Orthrus::SSH::Key

Instance Method Details

#verify(sign, data, b64armor = false) ⇒ Object



44
45
46
47
# File 'lib/orthrus/ssh/key.rb', line 44

def verify(sign, data, b64armor=false)
  sign = Utils.decode64 sign if b64armor
  @key.verify @digest.new, sign, data
end