class Net::SSH::Authentication::ED25519::PubKey
Attributes
Public Class Methods
Source
# File lib/net/ssh/authentication/ed25519.rb, line 109 def initialize(data) @verify_key = ::Ed25519::VerifyKey.new(data) end
Source
# File lib/net/ssh/authentication/ed25519.rb, line 113 def self.read_keyblob(buffer) PubKey.new(buffer.read_string) end
Public Instance Methods
Source
# File lib/net/ssh/authentication/ed25519.rb, line 129 def ssh_do_verify(sig, data, options = {}) @verify_key.verify(sig, data) end
Source
# File lib/net/ssh/authentication/ed25519.rb, line 125 def ssh_signature_type ssh_type end
Source
# File lib/net/ssh/authentication/ed25519.rb, line 121 def ssh_type "ssh-ed25519" end
Source
# File lib/net/ssh/authentication/ed25519.rb, line 117 def to_blob Net::SSH::Buffer.from(:mstring, "ssh-ed25519".dup, :string, @verify_key.to_bytes).to_s end
Source
# File lib/net/ssh/authentication/ed25519.rb, line 133 def to_pem # TODO this is not pem ssh_type + [@verify_key.to_bytes].pack("m") end