|
cx_err_t | cx_math_cmp_no_throw (const uint8_t *a, const uint8_t *b, size_t length, int *diff) |
| Compares two integers represented as byte arrays. More...
|
static int32_t | cx_math_cmp (const uint8_t *a, const uint8_t *b, size_t length) |
| Compares two integers represented as byte arrays. More...
|
cx_err_t | cx_math_add_no_throw (uint8_t *r, const uint8_t *a, const uint8_t *b, size_t len) |
| Adds two integers represented as byte arrays. More...
|
static uint32_t | cx_math_add (uint8_t *r, const uint8_t *a, const uint8_t *b, size_t len) |
| Adds two integers represented as byte arrays. More...
|
cx_err_t | cx_math_sub_no_throw (uint8_t *r, const uint8_t *a, const uint8_t *b, size_t len) |
| Subtracts two integers represented as byte arrays. More...
|
static uint32_t | cx_math_sub (uint8_t *r, const uint8_t *a, const uint8_t *b, size_t len) |
| Subtracts two integers represented as byte arrays. More...
|
cx_err_t | cx_math_mult_no_throw (uint8_t *r, const uint8_t *a, const uint8_t *b, size_t len) |
| Multiplies two integers represented as byte arrays. More...
|
static void | cx_math_mult (uint8_t *r, const uint8_t *a, const uint8_t *b, size_t len) |
| Multiplies two integers represented as byte arrays. More...
|
cx_err_t | cx_math_addm_no_throw (uint8_t *r, const uint8_t *a, const uint8_t *b, const uint8_t *m, size_t len) |
| Performs a modular addition of two integers represented as byte arrays. More...
|
static void | cx_math_addm (uint8_t *r, const uint8_t *a, const uint8_t *b, const uint8_t *m, size_t len) |
| Performs a modular addition of two integers represented as byte arrays. More...
|
cx_err_t | cx_math_subm_no_throw (uint8_t *r, const uint8_t *a, const uint8_t *b, const uint8_t *m, size_t len) |
| Performs a modular subtraction of two integers represented as byte arrays. More...
|
static void | cx_math_subm (uint8_t *r, const uint8_t *a, const uint8_t *b, const uint8_t *m, size_t len) |
| Performs a modular subtraction of two integers represented as byte arrays. More...
|
cx_err_t | cx_math_multm_no_throw (uint8_t *r, const uint8_t *a, const uint8_t *b, const uint8_t *m, size_t len) |
| Performs a modular multiplication of two integers represented as byte arrays. More...
|
static void | cx_math_multm (uint8_t *r, const uint8_t *a, const uint8_t *b, const uint8_t *m, size_t len) |
| Performs a modular multiplication of two integers represented as byte arrays. More...
|
cx_err_t | cx_math_modm_no_throw (uint8_t *v, size_t len_v, const uint8_t *m, size_t len_m) |
| Performs a modular reduction. More...
|
static void | cx_math_modm (uint8_t *v, size_t len_v, const uint8_t *m, size_t len_m) |
| Performs a modular reduction. More...
|
cx_err_t | cx_math_powm_no_throw (uint8_t *r, const uint8_t *a, const uint8_t *e, size_t len_e, const uint8_t *m, size_t len) |
| Performs a modular exponentiation. More...
|
static void | cx_math_powm (uint8_t *r, const uint8_t *a, const uint8_t *e, size_t len_e, const uint8_t *m, size_t len) |
| Performs a modular exponentiation. More...
|
cx_err_t | cx_math_invprimem_no_throw (uint8_t *r, const uint8_t *a, const uint8_t *m, size_t len) |
| Computes the modular inverse with a prime modulus. More...
|
static void | cx_math_invprimem (uint8_t *r, const uint8_t *a, const uint8_t *m, size_t len) |
| Computes the modular inverse with a prime modulus. More...
|
cx_err_t | cx_math_invintm_no_throw (uint8_t *r, uint32_t a, const uint8_t *m, size_t len) |
| Computes the modular inverse. More...
|
static void | cx_math_invintm (uint8_t *r, uint32_t a, const uint8_t *m, size_t len) |
| Computes the modular inverse. More...
|
cx_err_t | cx_math_is_prime_no_throw (const uint8_t *r, size_t len, bool *prime) |
| Checks whether a number is probably prime. More...
|
static bool | cx_math_is_prime (const uint8_t *r, size_t len) |
| Checks whether a number is probably prime. More...
|
cx_err_t | cx_math_next_prime_no_throw (uint8_t *r, uint32_t len) |
| Computes the next prime after a given number. More...
|
static void | cx_math_next_prime (uint8_t *r, uint32_t len) |
| Computes the next prime after a given number. More...
|
static bool | cx_math_is_zero (const uint8_t *a, size_t len) |
| Checks whether the byte array of an integer is all zero. More...
|