class Net::SSH::Authentication::ED25519::PrivKey
Constants
- CipherFactory
- MAGIC
- MBEGIN
- MEND
Attributes
sign_key[R]
Public Class Methods
new(buffer)
click to toggle source
# File lib/net/ssh/authentication/ed25519.rb, line 145 def initialize(buffer) pk = buffer.read_string sk = buffer.read_string _comment = buffer.read_string @pk = pk @sign_key = SigningKeyFromFile.new(pk,sk) end
read(data, password)
click to toggle source
# File lib/net/ssh/authentication/ed25519.rb, line 174 def self.read(data, password) OpenSSHPrivateKeyLoader.read(data, password) end
Public Instance Methods
public_key()
click to toggle source
# File lib/net/ssh/authentication/ed25519.rb, line 166 def public_key PubKey.new(@pk) end
ssh_do_sign(data)
click to toggle source
# File lib/net/ssh/authentication/ed25519.rb, line 170 def ssh_do_sign(data) @sign_key.sign(data) end
ssh_signature_type()
click to toggle source
# File lib/net/ssh/authentication/ed25519.rb, line 162 def ssh_signature_type ssh_type end
ssh_type()
click to toggle source
# File lib/net/ssh/authentication/ed25519.rb, line 158 def ssh_type "ssh-ed25519" end
to_blob()
click to toggle source
# File lib/net/ssh/authentication/ed25519.rb, line 154 def to_blob public_key.to_blob end