OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions
bn_mont.c File Reference
#include <stdio.h>
#include "cryptlib.h"
#include "bn_lcl.h"

Go to the source code of this file.

Macros

#define MONT_WORD   /* use the faster word-based algorithm */
 
#define BRANCH_FREE   1
 

Functions

int BN_mod_mul_montgomery (BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_MONT_CTX *mont, BN_CTX *ctx)
 
int BN_from_montgomery (BIGNUM *ret, const BIGNUM *a, BN_MONT_CTX *mont, BN_CTX *ctx)
 
BN_MONT_CTXBN_MONT_CTX_new (void)
 
void BN_MONT_CTX_init (BN_MONT_CTX *ctx)
 
void BN_MONT_CTX_free (BN_MONT_CTX *mont)
 
int BN_MONT_CTX_set (BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx)
 
BN_MONT_CTXBN_MONT_CTX_copy (BN_MONT_CTX *to, BN_MONT_CTX *from)
 
BN_MONT_CTXBN_MONT_CTX_set_locked (BN_MONT_CTX **pmont, int lock, const BIGNUM *mod, BN_CTX *ctx)
 

Macro Definition Documentation

#define BRANCH_FREE   1
#define MONT_WORD   /* use the faster word-based algorithm */

Definition at line 123 of file bn_mont.c.

Function Documentation

int BN_from_montgomery ( BIGNUM ret,
const BIGNUM a,
BN_MONT_CTX mont,
BN_CTX ctx 
)

Definition at line 280 of file bn_mont.c.

int BN_mod_mul_montgomery ( BIGNUM r,
const BIGNUM a,
const BIGNUM b,
BN_MONT_CTX mont,
BN_CTX ctx 
)

Definition at line 129 of file bn_mont.c.

BN_MONT_CTX* BN_MONT_CTX_copy ( BN_MONT_CTX to,
BN_MONT_CTX from 
)

Definition at line 465 of file bn_mont.c.

void BN_MONT_CTX_free ( BN_MONT_CTX mont)

Definition at line 343 of file bn_mont.c.

void BN_MONT_CTX_init ( BN_MONT_CTX ctx)

Definition at line 333 of file bn_mont.c.

BN_MONT_CTX* BN_MONT_CTX_new ( void  )

Definition at line 321 of file bn_mont.c.

int BN_MONT_CTX_set ( BN_MONT_CTX mont,
const BIGNUM mod,
BN_CTX ctx 
)

Definition at line 355 of file bn_mont.c.

BN_MONT_CTX* BN_MONT_CTX_set_locked ( BN_MONT_CTX **  pmont,
int  lock,
const BIGNUM mod,
BN_CTX ctx 
)

Definition at line 478 of file bn_mont.c.