Functions
bn.c File Reference
#include <openssl/bn.h>
#include <limits.h>
#include <string.h>
#include <openssl/err.h>
#include <openssl/mem.h>
#include "internal.h"
#include "../delocate.h"
Include dependency graph for bn.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void BN_clear (BIGNUM *bn)
 
void BN_clear_free (BIGNUM *bn)
 
BIGNUMBN_copy (BIGNUM *dest, const BIGNUM *src)
 
int bn_copy_words (BN_ULONG *out, size_t num, const BIGNUM *bn)
 
BIGNUMBN_dup (const BIGNUM *src)
 
int bn_expand (BIGNUM *bn, size_t bits)
 
int bn_fits_in_words (const BIGNUM *bn, size_t num)
 
void BN_free (BIGNUM *bn)
 
void BN_init (BIGNUM *bn)
 
int BN_is_negative (const BIGNUM *bn)
 
int bn_minimal_width (const BIGNUM *bn)
 
BIGNUMBN_new (void)
 
unsigned BN_num_bits (const BIGNUM *bn)
 
unsigned BN_num_bits_word (BN_ULONG l)
 
unsigned BN_num_bytes (const BIGNUM *bn)
 
int BN_one (BIGNUM *bn)
 
int bn_resize_words (BIGNUM *bn, size_t words)
 
void bn_select_words (BN_ULONG *r, BN_ULONG mask, const BN_ULONG *a, const BN_ULONG *b, size_t num)
 
void bn_set_minimal_width (BIGNUM *bn)
 
void BN_set_negative (BIGNUM *bn, int sign)
 
void bn_set_static_words (BIGNUM *bn, const BN_ULONG *words, size_t num)
 
int BN_set_u64 (BIGNUM *bn, uint64_t value)
 
int BN_set_word (BIGNUM *bn, BN_ULONG value)
 
int bn_set_words (BIGNUM *bn, const BN_ULONG *words, size_t num)
 
int bn_wexpand (BIGNUM *bn, size_t words)
 
void BN_zero (BIGNUM *bn)
 
 DEFINE_METHOD_FUNCTION (BIGNUM, BN_value_one)
 

Function Documentation

◆ BN_clear()

void BN_clear ( BIGNUM bn)

Definition at line 143 of file bn.c.

◆ BN_clear_free()

void BN_clear_free ( BIGNUM bn)

Definition at line 103 of file bn.c.

◆ BN_copy()

BIGNUM* BN_copy ( BIGNUM dest,
const BIGNUM src 
)

Definition at line 127 of file bn.c.

◆ bn_copy_words()

int bn_copy_words ( BN_ULONG *  out,
size_t  num,
const BIGNUM bn 
)

Definition at line 307 of file bn.c.

◆ BN_dup()

BIGNUM* BN_dup ( const BIGNUM src)

Definition at line 107 of file bn.c.

◆ bn_expand()

int bn_expand ( BIGNUM bn,
size_t  bits 
)

Definition at line 371 of file bn.c.

◆ bn_fits_in_words()

int bn_fits_in_words ( const BIGNUM bn,
size_t  num 
)

Definition at line 298 of file bn.c.

◆ BN_free()

void BN_free ( BIGNUM bn)

Definition at line 87 of file bn.c.

◆ BN_init()

void BN_init ( BIGNUM bn)

Definition at line 83 of file bn.c.

◆ BN_is_negative()

int BN_is_negative ( const BIGNUM bn)

Definition at line 327 of file bn.c.

◆ bn_minimal_width()

int bn_minimal_width ( const BIGNUM bn)

Definition at line 425 of file bn.c.

◆ BN_new()

BIGNUM* BN_new ( void  )

Definition at line 69 of file bn.c.

◆ BN_num_bits()

unsigned BN_num_bits ( const BIGNUM bn)

Definition at line 216 of file bn.c.

◆ BN_num_bits_word()

unsigned BN_num_bits_word ( BN_ULONG  l)

Definition at line 163 of file bn.c.

◆ BN_num_bytes()

unsigned BN_num_bytes ( const BIGNUM bn)

Definition at line 225 of file bn.c.

◆ BN_one()

int BN_one ( BIGNUM bn)

Definition at line 233 of file bn.c.

◆ bn_resize_words()

int bn_resize_words ( BIGNUM bn,
size_t  words 
)

Definition at line 379 of file bn.c.

◆ bn_select_words()

void bn_select_words ( BN_ULONG *  r,
BN_ULONG  mask,
const BN_ULONG *  a,
const BN_ULONG *  b,
size_t  num 
)

Definition at line 416 of file bn.c.

◆ bn_set_minimal_width()

void bn_set_minimal_width ( BIGNUM bn)

Definition at line 433 of file bn.c.

◆ BN_set_negative()

void BN_set_negative ( BIGNUM bn,
int  sign 
)

Definition at line 331 of file bn.c.

◆ bn_set_static_words()

void bn_set_static_words ( BIGNUM bn,
const BN_ULONG *  words,
size_t  num 
)

Definition at line 286 of file bn.c.

◆ BN_set_u64()

int BN_set_u64 ( BIGNUM bn,
uint64_t  value 
)

Definition at line 253 of file bn.c.

◆ BN_set_word()

int BN_set_word ( BIGNUM bn,
BN_ULONG  value 
)

Definition at line 237 of file bn.c.

◆ bn_set_words()

int bn_set_words ( BIGNUM bn,
const BN_ULONG *  words,
size_t  num 
)

Definition at line 275 of file bn.c.

◆ bn_wexpand()

int bn_wexpand ( BIGNUM bn,
size_t  words 
)

Definition at line 339 of file bn.c.

◆ BN_zero()

void BN_zero ( BIGNUM bn)

Definition at line 229 of file bn.c.

◆ DEFINE_METHOD_FUNCTION()

DEFINE_METHOD_FUNCTION ( BIGNUM  ,
BN_value_one   
)

Definition at line 152 of file bn.c.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:04