Home  Contents

mpi:fromBinaryLE

Cipher/MPI Core4 Lua Commands

SYNOPSIS

  1. result = mpi:fromBinaryLE(str,i[,j])
  2. result = mpi:fromBinaryBE(str,i[,j])

DESCRIPTION

The Core4 system includes a copy of mbed TLS.

Loads binary data into the bignum container. The system supports both, big and little endian data.

RETURN VALUE

Returns true on success.

In case of an error returns three values: nil, a string describing the error and a negative error code from the underlying mbed TLS implementation.

SEE ALSO