# File lib/net/ssh/authentication/ed25519.rb, line 26 def initialize(data) @verify_key = RbNaCl::Signatures::Ed25519::VerifyKey.new(data) end
# File lib/net/ssh/authentication/ed25519.rb, line 30 def self.read_keyblob(buffer) PubKey.new(buffer.read_string) end
# File lib/net/ssh/authentication/ed25519.rb, line 51 def fingerprint @fingerprint ||= OpenSSL::Digest::MD5.hexdigest(to_blob).scan(/../).join(":") end
# File lib/net/ssh/authentication/ed25519.rb, line 42 def ssh_do_verify(sig,data) @verify_key.verify(sig,data) end
# File lib/net/ssh/authentication/ed25519.rb, line 38 def ssh_type "ssh-ed25519" end
# File lib/net/ssh/authentication/ed25519.rb, line 34 def to_blob Net::SSH::Buffer.from(:mstring,"ssh-ed25519",:string,@verify_key.to_bytes).to_s end
# File lib/net/ssh/authentication/ed25519.rb, line 46 def to_pem # TODO this is not pem ssh_type + Base64.encode64(@verify_key.to_bytes) end