|
rlib
Convenience library for useful things
|
Per-modulus Montgomery context. More...
#include <rlib/data/rmpint.h>
Data Fields | |
| RMpintFE | p |
| rmpint_digit | mp |
| ruint16 | n_digits |
Per-modulus Montgomery context.
All RMpintFE primitives take a pointer to one of these so the modulus, its Montgomery inverse and the digit width don't have to thread through every call site.
| rmpint_digit RMpintFEMontCtx::mp |
-p^-1 mod 2^digit_bits.
| ruint16 RMpintFEMontCtx::n_digits |
Number of digits the modulus occupies.
| RMpintFE RMpintFEMontCtx::p |
Modulus, in normal form.