pub unsafe extern "C" fn Hacl_Bignum64_mont_ctx_init(
len: u32,
n: *mut u64,
) -> *mut Hacl_Bignum_MontArithmetic_bn_mont_ctx_u64
Expand description
Heap-allocate and initialize a montgomery context.
The argument n is meant to be len
limbs in size, i.e. uint64_t[len].
Before calling this function, the caller will need to ensure that the following preconditions are observed. • n % 2 = 1 • 1 < n
The caller will need to call Hacl_Bignum64_mont_ctx_free on the return value to avoid memory leaks.