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

Go to the source code of this file.

Functions

void BN_set_params (int mult, int high, int low, int mont)
 
int BN_get_params (int which)
 
const BIGNUMBN_value_one (void)
 
char * BN_options (void)
 
int BN_num_bits_word (BN_ULONG l)
 
int BN_num_bits (const BIGNUM *a)
 
void BN_clear_free (BIGNUM *a)
 
void BN_free (BIGNUM *a)
 
void BN_init (BIGNUM *a)
 
BIGNUMBN_new (void)
 
BIGNUMbn_dup_expand (const BIGNUM *b, int words)
 
BIGNUMbn_expand2 (BIGNUM *b, int words)
 
BIGNUMBN_dup (const BIGNUM *a)
 
BIGNUMBN_copy (BIGNUM *a, const BIGNUM *b)
 
void BN_swap (BIGNUM *a, BIGNUM *b)
 
void BN_clear (BIGNUM *a)
 
BN_ULONG BN_get_word (const BIGNUM *a)
 
int BN_set_word (BIGNUM *a, BN_ULONG w)
 
BIGNUMBN_bin2bn (const unsigned char *s, int len, BIGNUM *ret)
 
int BN_bn2bin (const BIGNUM *a, unsigned char *to)
 
int BN_ucmp (const BIGNUM *a, const BIGNUM *b)
 
int BN_cmp (const BIGNUM *a, const BIGNUM *b)
 
int BN_set_bit (BIGNUM *a, int n)
 
int BN_clear_bit (BIGNUM *a, int n)
 
int BN_is_bit_set (const BIGNUM *a, int n)
 
int BN_mask_bits (BIGNUM *a, int n)
 
void BN_set_negative (BIGNUM *a, int b)
 
int bn_cmp_words (const BN_ULONG *a, const BN_ULONG *b, int n)
 
int bn_cmp_part_words (const BN_ULONG *a, const BN_ULONG *b, int cl, int dl)
 
int BN_high_bit (BIGNUM *a)
 
void BN_checksum (BIGNUM *a, BN_ULONG *chk)
 

Function Documentation

BIGNUM* BN_bin2bn ( const unsigned char *  s,
int  len,
BIGNUM ret 
)

Definition at line 615 of file bn_lib.c.

int BN_bn2bin ( const BIGNUM a,
unsigned char *  to 
)

Definition at line 659 of file bn_lib.c.

void BN_checksum ( BIGNUM a,
BN_ULONG chk 
)

Definition at line 877 of file bn_lib.c.

void BN_clear ( BIGNUM a)

Definition at line 585 of file bn_lib.c.

int BN_clear_bit ( BIGNUM a,
int  n 
)

Definition at line 759 of file bn_lib.c.

void BN_clear_free ( BIGNUM a)

Definition at line 274 of file bn_lib.c.

int BN_cmp ( const BIGNUM a,
const BIGNUM b 
)

Definition at line 696 of file bn_lib.c.

int bn_cmp_part_words ( const BN_ULONG a,
const BN_ULONG b,
int  cl,
int  dl 
)

Definition at line 840 of file bn_lib.c.

int bn_cmp_words ( const BN_ULONG a,
const BN_ULONG b,
int  n 
)

Definition at line 816 of file bn_lib.c.

BIGNUM* BN_copy ( BIGNUM a,
const BIGNUM b 
)

Definition at line 515 of file bn_lib.c.

BIGNUM* BN_dup ( const BIGNUM a)

Definition at line 497 of file bn_lib.c.

BIGNUM* bn_dup_expand ( const BIGNUM b,
int  words 
)

Definition at line 412 of file bn_lib.c.

BIGNUM* bn_expand2 ( BIGNUM b,
int  words 
)

Definition at line 463 of file bn_lib.c.

void BN_free ( BIGNUM a)

Definition at line 292 of file bn_lib.c.

int BN_get_params ( int  which)

Definition at line 139 of file bn_lib.c.

BN_ULONG BN_get_word ( const BIGNUM a)

Definition at line 594 of file bn_lib.c.

int BN_high_bit ( BIGNUM a)

Definition at line 865 of file bn_lib.c.

void BN_init ( BIGNUM a)

Definition at line 309 of file bn_lib.c.

int BN_is_bit_set ( const BIGNUM a,
int  n 
)

Definition at line 775 of file bn_lib.c.

int BN_mask_bits ( BIGNUM a,
int  n 
)

Definition at line 787 of file bn_lib.c.

BIGNUM* BN_new ( void  )

Definition at line 315 of file bn_lib.c.

int BN_num_bits ( const BIGNUM a)

Definition at line 265 of file bn_lib.c.

int BN_num_bits_word ( BN_ULONG  l)

Definition at line 178 of file bn_lib.c.

char* BN_options ( void  )

Definition at line 157 of file bn_lib.c.

int BN_set_bit ( BIGNUM a,
int  n 
)

Definition at line 737 of file bn_lib.c.

void BN_set_negative ( BIGNUM a,
int  b 
)

Definition at line 808 of file bn_lib.c.

void BN_set_params ( int  mult,
int  high,
int  low,
int  mont 
)

Definition at line 107 of file bn_lib.c.

int BN_set_word ( BIGNUM a,
BN_ULONG  w 
)

Definition at line 604 of file bn_lib.c.

void BN_swap ( BIGNUM a,
BIGNUM b 
)

Definition at line 552 of file bn_lib.c.

int BN_ucmp ( const BIGNUM a,
const BIGNUM b 
)

Definition at line 674 of file bn_lib.c.

const BIGNUM* BN_value_one ( void  )

Definition at line 149 of file bn_lib.c.