# File lib/net/ssh/key_factory.rb, line 89 89: def load_data_public_key(data, filename="") 90: type, blob = data.split(/ /) 91: 92: raise Net::SSH::Exception, "public key at #{filename} is not valid" if blob.nil? 93: 94: blob = blob.unpack("m*").first 95: reader = Net::SSH::Buffer.new(blob) 96: reader.read_key or raise OpenSSL::PKey::PKeyError, "not a public key #{filename.inspect}" 97: end