cryptlib  3.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros
Functions
bn_recp.c File Reference
#include <stdio.h>
#include "bn/bn_lcl.h"

Go to the source code of this file.

Functions

void BN_RECP_CTX_init (BN_RECP_CTX *recp)
 
BN_RECP_CTXBN_RECP_CTX_new (void)
 
void BN_RECP_CTX_free (BN_RECP_CTX *recp)
 
int BN_RECP_CTX_set (BN_RECP_CTX *recp, const BIGNUM *d, BN_CTX *ctx)
 
int BN_mod_mul_reciprocal (BIGNUM *r, const BIGNUM *x, const BIGNUM *y, BN_RECP_CTX *recp, BN_CTX *ctx)
 
int BN_div_recp (BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, BN_RECP_CTX *recp, BN_CTX *ctx)
 
int BN_reciprocal (BIGNUM *r, const BIGNUM *m, int len, BN_CTX *ctx)
 

Function Documentation

int BN_div_recp ( BIGNUM dv,
BIGNUM rem,
const BIGNUM m,
BN_RECP_CTX recp,
BN_CTX ctx 
)

Definition at line 133 of file bn_recp.c.

int BN_mod_mul_reciprocal ( BIGNUM r,
const BIGNUM x,
const BIGNUM y,
BN_RECP_CTX recp,
BN_CTX ctx 
)

Definition at line 106 of file bn_recp.c.

int BN_reciprocal ( BIGNUM r,
const BIGNUM m,
int  len,
BN_CTX ctx 
)

Definition at line 220 of file bn_recp.c.

void BN_RECP_CTX_free ( BN_RECP_CTX recp)

Definition at line 86 of file bn_recp.c.

void BN_RECP_CTX_init ( BN_RECP_CTX recp)

Definition at line 66 of file bn_recp.c.

BN_RECP_CTX* BN_RECP_CTX_new ( void  )

Definition at line 74 of file bn_recp.c.

int BN_RECP_CTX_set ( BN_RECP_CTX recp,
const BIGNUM d,
BN_CTX ctx 
)

Definition at line 97 of file bn_recp.c.