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

Go to the source code of this file.

Classes

struct  bignum_pool_item
 
struct  bignum_pool
 
struct  bignum_ctx_stack
 
struct  bignum_ctx
 

Macros

#define BN_CTX_POOL_SIZE   16
 
#define BN_CTX_START_FRAMES   32
 
#define CTXDBG_ENTRY(str, ctx)
 
#define CTXDBG_EXIT(ctx)
 
#define CTXDBG_RET(ctx, ret)
 

Typedefs

typedef struct bignum_pool_item BN_POOL_ITEM
 
typedef struct bignum_pool BN_POOL
 
typedef struct bignum_ctx_stack BN_STACK
 

Functions

void BN_CTX_init (BN_CTX *ctx)
 
BN_CTXBN_CTX_new (void)
 
void BN_CTX_free (BN_CTX *ctx)
 
void BN_CTX_start (BN_CTX *ctx)
 
void BN_CTX_end (BN_CTX *ctx)
 
BIGNUMBN_CTX_get (BN_CTX *ctx)
 
void BN_CTX_clear (BN_CTX *bnCTX)
 

Macro Definition Documentation

#define BN_CTX_POOL_SIZE   16

Definition at line 87 of file bn_ctx.c.

#define BN_CTX_START_FRAMES   32

Definition at line 89 of file bn_ctx.c.

#define CTXDBG_ENTRY (   str,
  ctx 
)

Definition at line 197 of file bn_ctx.c.

#define CTXDBG_EXIT (   ctx)

Definition at line 198 of file bn_ctx.c.

#define CTXDBG_RET (   ctx,
  ret 
)

Definition at line 199 of file bn_ctx.c.

Typedef Documentation

typedef struct bignum_pool BN_POOL
typedef struct bignum_ctx_stack BN_STACK

Function Documentation

void BN_CTX_clear ( BN_CTX bnCTX)

Definition at line 316 of file bn_ctx.c.

void BN_CTX_end ( BN_CTX ctx)

Definition at line 276 of file bn_ctx.c.

void BN_CTX_free ( BN_CTX ctx)

Definition at line 237 of file bn_ctx.c.

BIGNUM* BN_CTX_get ( BN_CTX ctx)

Definition at line 294 of file bn_ctx.c.

void BN_CTX_init ( BN_CTX ctx)

Definition at line 205 of file bn_ctx.c.

BN_CTX* BN_CTX_new ( void  )

Definition at line 219 of file bn_ctx.c.

void BN_CTX_start ( BN_CTX ctx)

Definition at line 261 of file bn_ctx.c.