Function esp_idf_svc::sys::mbedtls_mpi_get_bit

source ยท
pub unsafe extern "C" fn mbedtls_mpi_get_bit(
    X: *const mbedtls_mpi,
    pos: usize,
) -> i32
Expand description

\brief Get a specific bit from an MPI.

\param X The MPI to query. This must be initialized. \param pos Zero-based index of the bit to query.

\return \c 0 or \c 1 on success, depending on whether bit \c pos of \c X is unset or set. \return A negative error code on failure.