Method: NetPGP.mpi_to_native

Defined in:
lib/netpgp/highlevel/utils.rb

.mpi_to_native(mpi, native) ⇒ Object



51
52
53
54
55
56
57
58
59
# File 'lib/netpgp/highlevel/utils.rb', line 51

def self.mpi_to_native(mpi, native)
  mpi.each {|name,value|
    if mpi[name] == nil
      native[name] = nil
    else
      native[name] = LibNetPGP::num2bn(value)
    end
  }
end