Functions
boringssl-with-bazel/src/crypto/fipsmodule/bn/random.c File Reference
#include <openssl/bn.h>
#include <limits.h>
#include <string.h>
#include <openssl/err.h>
#include <openssl/rand.h>
#include <openssl/type_check.h>
#include "internal.h"
#include "../../internal.h"
#include "../rand/internal.h"
Include dependency graph for boringssl-with-bazel/src/crypto/fipsmodule/bn/random.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int bn_in_range_words (const BN_ULONG *a, BN_ULONG min_inclusive, const BN_ULONG *max_exclusive, size_t len)
 
static crypto_word_t bn_less_than_word_mask (const BN_ULONG *a, size_t len, BN_ULONG b)
 
int BN_pseudo_rand (BIGNUM *rnd, int bits, int top, int bottom)
 
int BN_pseudo_rand_range (BIGNUM *r, const BIGNUM *range)
 
int BN_rand (BIGNUM *rnd, int bits, int top, int bottom)
 
int BN_rand_range (BIGNUM *r, const BIGNUM *range)
 
int BN_rand_range_ex (BIGNUM *r, BN_ULONG min_inclusive, const BIGNUM *max_exclusive)
 
int bn_rand_range_words (BN_ULONG *out, BN_ULONG min_inclusive, const BN_ULONG *max_exclusive, size_t len, const uint8_t additional_data[32])
 
int bn_rand_secret_range (BIGNUM *r, int *out_is_uniform, BN_ULONG min_inclusive, const BIGNUM *max_exclusive)
 
static int bn_range_to_mask (size_t *out_words, BN_ULONG *out_mask, size_t min_inclusive, const BN_ULONG *max_exclusive, size_t len)
 

Function Documentation

◆ bn_in_range_words()

int bn_in_range_words ( const BN_ULONG *  a,
BN_ULONG  min_inclusive,
const BN_ULONG *  max_exclusive,
size_t  len 
)

◆ bn_less_than_word_mask()

static crypto_word_t bn_less_than_word_mask ( const BN_ULONG *  a,
size_t  len,
BN_ULONG  b 
)
static

◆ BN_pseudo_rand()

int BN_pseudo_rand ( BIGNUM rnd,
int  bits,
int  top,
int  bottom 
)

◆ BN_pseudo_rand_range()

int BN_pseudo_rand_range ( BIGNUM r,
const BIGNUM range 
)

◆ BN_rand()

int BN_rand ( BIGNUM rnd,
int  bits,
int  top,
int  bottom 
)

◆ BN_rand_range()

int BN_rand_range ( BIGNUM r,
const BIGNUM range 
)

◆ BN_rand_range_ex()

int BN_rand_range_ex ( BIGNUM r,
BN_ULONG  min_inclusive,
const BIGNUM max_exclusive 
)

◆ bn_rand_range_words()

int bn_rand_range_words ( BN_ULONG *  out,
BN_ULONG  min_inclusive,
const BN_ULONG *  max_exclusive,
size_t  len,
const uint8_t  additional_data[32] 
)

◆ bn_rand_secret_range()

int bn_rand_secret_range ( BIGNUM r,
int out_is_uniform,
BN_ULONG  min_inclusive,
const BIGNUM max_exclusive 
)

◆ bn_range_to_mask()

static int bn_range_to_mask ( size_t *  out_words,
BN_ULONG *  out_mask,
size_t  min_inclusive,
const BN_ULONG *  max_exclusive,
size_t  len 
)
static


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