We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42b8065 commit 7c9505eCopy full SHA for 7c9505e
lib/ssh_data/signature.rb
@@ -108,6 +108,10 @@ def verify(signed_data, **opts)
108
# If the signature was created from a certificate, this will be an
109
# SSHData::Certificate. Otherwise, this will be a PublicKey algorithm.
110
def public_key
111
+ @data_public_key ||= load_public_key
112
+ end
113
+
114
+ private def load_public_key
115
public_key_algorithm, _ = Encoding.decode_string(@publickey)
116
117
if PublicKey::ALGOS.include?(public_key_algorithm)
0 commit comments