class OpenPGP::Packet::AsymmetricSessionKey
OpenPGP
Public-Key Encrypted Session Key packet (tag 1).
@see tools.ietf.org/html/rfc4880#section-5.1 @see tools.ietf.org/html/rfc4880#section-13.1
Attributes
algorithm[RW]
key_id[RW]
version[RW]
Public Class Methods
parse_body(body, options = {})
click to toggle source
# File lib/openpgp/packet.rb, line 128 def self.parse_body(body, options = {}) case version = body.read_byte when 3 self.new(:version => version, :key_id => body.read_number(8, 16), :algorithm => body.read_byte) # TODO: read the encrypted session key. else raise "Invalid OpenPGP public-key ESK packet version: #{version}" end end