class Net::SSH::Authentication::ED25519::PrivKey
Constants
- CipherFactory
- MAGIC
- MBEGIN
- MEND
Attributes
Public Class Methods
Source
# File lib/net/ssh/authentication/ed25519.rb, line 148 def initialize(buffer) pk = buffer.read_string sk = buffer.read_string _comment = buffer.read_string @pk = pk @sign_key = SigningKeyFromFile.new(pk, sk) end
Source
# File lib/net/ssh/authentication/ed25519.rb, line 177 def self.read(data, password) OpenSSHPrivateKeyLoader.read(data, password) end
Public Instance Methods
Source
# File lib/net/ssh/authentication/ed25519.rb, line 169 def public_key PubKey.new(@pk) end
Source
# File lib/net/ssh/authentication/ed25519.rb, line 173 def ssh_do_sign(data, sig_alg = nil) @sign_key.sign(data) end
Source
# File lib/net/ssh/authentication/ed25519.rb, line 165 def ssh_signature_type ssh_type end
Source
# File lib/net/ssh/authentication/ed25519.rb, line 161 def ssh_type "ssh-ed25519" end
Source
# File lib/net/ssh/authentication/ed25519.rb, line 157 def to_blob public_key.to_blob end