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

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

void BN_set_params (int mult, int high, int low, int mont)
 
int BN_get_params (int which)
 
const BIGNUMBN_value_one (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)
 

Variables

const char BN_version [] ="Big Number" OPENSSL_VERSION_PTEXT
 

Macro Definition Documentation

#define NDEBUG

Definition at line 61 of file bn_lib.c.

Function Documentation

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

Definition at line 578 of file bn_lib.c.

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

Definition at line 622 of file bn_lib.c.

void BN_clear ( BIGNUM a)

Definition at line 548 of file bn_lib.c.

int BN_clear_bit ( BIGNUM a,
int  n 
)

Definition at line 722 of file bn_lib.c.

void BN_clear_free ( BIGNUM a)

Definition at line 238 of file bn_lib.c.

int BN_cmp ( const BIGNUM a,
const BIGNUM b 
)

Definition at line 659 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 803 of file bn_lib.c.

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

Definition at line 779 of file bn_lib.c.

BIGNUM* BN_copy ( BIGNUM a,
const BIGNUM b 
)

Definition at line 478 of file bn_lib.c.

BIGNUM* BN_dup ( const BIGNUM a)

Definition at line 460 of file bn_lib.c.

BIGNUM* bn_dup_expand ( const BIGNUM b,
int  words 
)

Definition at line 375 of file bn_lib.c.

BIGNUM* bn_expand2 ( BIGNUM b,
int  words 
)

Definition at line 426 of file bn_lib.c.

void BN_free ( BIGNUM a)

Definition at line 256 of file bn_lib.c.

int BN_get_params ( int  which)

Definition at line 124 of file bn_lib.c.

BN_ULONG BN_get_word ( const BIGNUM a)

Definition at line 557 of file bn_lib.c.

void BN_init ( BIGNUM a)

Definition at line 273 of file bn_lib.c.

int BN_is_bit_set ( const BIGNUM a,
int  n 
)

Definition at line 738 of file bn_lib.c.

int BN_mask_bits ( BIGNUM a,
int  n 
)

Definition at line 750 of file bn_lib.c.

BIGNUM* BN_new ( void  )

Definition at line 279 of file bn_lib.c.

int BN_num_bits ( const BIGNUM a)

Definition at line 229 of file bn_lib.c.

int BN_num_bits_word ( BN_ULONG  l)

Definition at line 142 of file bn_lib.c.

int BN_set_bit ( BIGNUM a,
int  n 
)

Definition at line 700 of file bn_lib.c.

void BN_set_negative ( BIGNUM b,
int  n 
)

BN_set_negative sets sign of a BIGNUM

Parameters
bpointer to the BIGNUM object
n0 if the BIGNUM b should be positive and a value != 0 otherwise

Definition at line 771 of file bn_lib.c.

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

Definition at line 92 of file bn_lib.c.

int BN_set_word ( BIGNUM a,
BN_ULONG  w 
)

Definition at line 567 of file bn_lib.c.

void BN_swap ( BIGNUM a,
BIGNUM b 
)

Definition at line 515 of file bn_lib.c.

int BN_ucmp ( const BIGNUM a,
const BIGNUM b 
)

Definition at line 637 of file bn_lib.c.

const BIGNUM* BN_value_one ( void  )

Definition at line 134 of file bn_lib.c.

Variable Documentation

const char BN_version[] ="Big Number" OPENSSL_VERSION_PTEXT

Definition at line 70 of file bn_lib.c.