#include <assert.h>
#include <limits.h>
#include <stdio.h>
#include "cryptlib.h"
#include "bn_lcl.h"
Go to the source code of this file.
|
void | BN_set_params (int mult, int high, int low, int mont) |
|
int | BN_get_params (int which) |
|
const BIGNUM * | BN_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) |
|
BIGNUM * | BN_new (void) |
|
BIGNUM * | bn_dup_expand (const BIGNUM *b, int words) |
|
BIGNUM * | bn_expand2 (BIGNUM *b, int words) |
|
BIGNUM * | BN_dup (const BIGNUM *a) |
|
BIGNUM * | BN_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) |
|
BIGNUM * | BN_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) |
|
|
const char | BN_version [] ="Big Number" OPENSSL_VERSION_PTEXT |
|
BIGNUM* BN_bin2bn |
( |
const unsigned char * |
s, |
|
|
int |
len, |
|
|
BIGNUM * |
ret |
|
) |
| |
int BN_bn2bin |
( |
const BIGNUM * |
a, |
|
|
unsigned char * |
to |
|
) |
| |
int BN_clear_bit |
( |
BIGNUM * |
a, |
|
|
int |
n |
|
) |
| |
int bn_cmp_part_words |
( |
const BN_ULONG * |
a, |
|
|
const BN_ULONG * |
b, |
|
|
int |
cl, |
|
|
int |
dl |
|
) |
| |
int bn_cmp_words |
( |
const BN_ULONG * |
a, |
|
|
const BN_ULONG * |
b, |
|
|
int |
n |
|
) |
| |
int BN_get_params |
( |
int |
which | ) |
|
BN_ULONG BN_get_word |
( |
const BIGNUM * |
a | ) |
|
int BN_is_bit_set |
( |
const BIGNUM * |
a, |
|
|
int |
n |
|
) |
| |
int BN_mask_bits |
( |
BIGNUM * |
a, |
|
|
int |
n |
|
) |
| |
int BN_num_bits |
( |
const BIGNUM * |
a | ) |
|
int BN_num_bits_word |
( |
BN_ULONG |
l | ) |
|
int BN_set_bit |
( |
BIGNUM * |
a, |
|
|
int |
n |
|
) |
| |
BN_set_negative sets sign of a BIGNUM
- Parameters
-
b | pointer to the BIGNUM object |
n | 0 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 |
|
) |
| |
int BN_set_word |
( |
BIGNUM * |
a, |
|
|
BN_ULONG |
w |
|
) |
| |
const char BN_version[] ="Big Number" OPENSSL_VERSION_PTEXT |