#include "cryptlib.h"
#include "bn_lcl.h"
#include <stdlib.h>
Go to the source code of this file.
|
int | BN_exp (BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx) |
|
int | BN_mod_exp (BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx) |
|
int | BN_mod_exp_recp (BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx) |
|
int | BN_mod_exp_mont (BIGNUM *rr, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont) |
|
int | BN_mod_exp_mont_consttime (BIGNUM *rr, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont) |
|
int | BN_mod_exp_mont_word (BIGNUM *rr, BN_ULONG a, const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont) |
|
int | BN_mod_exp_simple (BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx) |
|
#define BN_MOD_MUL_WORD |
( |
|
r, |
|
|
|
w, |
|
|
|
m |
|
) |
| |
Value:
( \
(
BN_mod(
t, r, m, ctx) && (swap_tmp = r, r =
t,
t = swap_tmp, 1))))