class OpenPGP::Packet::IntegrityProtectedData

OpenPGP Sym. Encrypted Integrity Protected Data packet (tag 18).

@see tools.ietf.org/html/rfc4880#section-5.13

Attributes

version[RW]

Public Class Methods

parse_body(body, options = {}) click to toggle source
# File lib/openpgp/packet.rb, line 476
def self.parse_body(body, options = {})
  case version = body.read_byte
    when 1
      self.new(:version => version) # TODO: read the encrypted data.
    else
      raise "Invalid OpenPGP integrity-protected data packet version: #{version}"
  end
end