OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions
bn_mod.c File Reference
#include "cryptlib.h"
#include "bn_lcl.h"

Go to the source code of this file.

Functions

int BN_nnmod (BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx)
 
int BN_mod_add (BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, BN_CTX *ctx)
 
int BN_mod_add_quick (BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m)
 
int BN_mod_sub (BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, BN_CTX *ctx)
 
int BN_mod_sub_quick (BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m)
 
int BN_mod_mul (BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, BN_CTX *ctx)
 
int BN_mod_sqr (BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx)
 
int BN_mod_lshift1 (BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx)
 
int BN_mod_lshift1_quick (BIGNUM *r, const BIGNUM *a, const BIGNUM *m)
 
int BN_mod_lshift (BIGNUM *r, const BIGNUM *a, int n, const BIGNUM *m, BN_CTX *ctx)
 
int BN_mod_lshift_quick (BIGNUM *r, const BIGNUM *a, int n, const BIGNUM *m)
 

Function Documentation

int BN_mod_add ( BIGNUM r,
const BIGNUM a,
const BIGNUM b,
const BIGNUM m,
BN_CTX ctx 
)

Definition at line 141 of file bn_mod.c.

int BN_mod_add_quick ( BIGNUM r,
const BIGNUM a,
const BIGNUM b,
const BIGNUM m 
)

Definition at line 150 of file bn_mod.c.

int BN_mod_lshift ( BIGNUM r,
const BIGNUM a,
int  n,
const BIGNUM m,
BN_CTX ctx 
)

Definition at line 231 of file bn_mod.c.

int BN_mod_lshift1 ( BIGNUM r,
const BIGNUM a,
const BIGNUM m,
BN_CTX ctx 
)

Definition at line 211 of file bn_mod.c.

int BN_mod_lshift1_quick ( BIGNUM r,
const BIGNUM a,
const BIGNUM m 
)

Definition at line 221 of file bn_mod.c.

int BN_mod_lshift_quick ( BIGNUM r,
const BIGNUM a,
int  n,
const BIGNUM m 
)

Definition at line 256 of file bn_mod.c.

int BN_mod_mul ( BIGNUM r,
const BIGNUM a,
const BIGNUM b,
const BIGNUM m,
BN_CTX ctx 
)

Definition at line 178 of file bn_mod.c.

int BN_mod_sqr ( BIGNUM r,
const BIGNUM a,
const BIGNUM m,
BN_CTX ctx 
)

Definition at line 203 of file bn_mod.c.

int BN_mod_sub ( BIGNUM r,
const BIGNUM a,
const BIGNUM b,
const BIGNUM m,
BN_CTX ctx 
)

Definition at line 159 of file bn_mod.c.

int BN_mod_sub_quick ( BIGNUM r,
const BIGNUM a,
const BIGNUM b,
const BIGNUM m 
)

Definition at line 168 of file bn_mod.c.

int BN_nnmod ( BIGNUM r,
const BIGNUM m,
const BIGNUM d,
BN_CTX ctx 
)

Definition at line 127 of file bn_mod.c.