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