Method: OpenPGP::Buffer#read_mpi

Defined in:
lib/openpgp/buffer.rb

#read_mpiObject



58
59
60
61
62
# File 'lib/openpgp/buffer.rb', line 58

def read_mpi
  length = read_unpacked(2, 'n')      # length in bits
  length = ((length + 7) / 8.0).floor # length in bytes
  read_bytes(length)
end