We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 42b8065 + 7c9505e commit 4ec1875Copy full SHA for 4ec1875
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