#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"
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) |
int bn_in_range_words | ( | const BN_ULONG * | a, |
BN_ULONG | min_inclusive, | ||
const BN_ULONG * | max_exclusive, | ||
size_t | len | ||
) |
Definition at line 210 of file boringssl-with-bazel/src/crypto/fipsmodule/bn/random.c.
|
static |
Definition at line 188 of file boringssl-with-bazel/src/crypto/fipsmodule/bn/random.c.
Definition at line 181 of file boringssl-with-bazel/src/crypto/fipsmodule/bn/random.c.
Definition at line 339 of file boringssl-with-bazel/src/crypto/fipsmodule/bn/random.c.
Definition at line 123 of file boringssl-with-bazel/src/crypto/fipsmodule/bn/random.c.
Definition at line 335 of file boringssl-with-bazel/src/crypto/fipsmodule/bn/random.c.
Definition at line 283 of file boringssl-with-bazel/src/crypto/fipsmodule/bn/random.c.
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] | ||
) |
Definition at line 245 of file boringssl-with-bazel/src/crypto/fipsmodule/bn/random.c.
int bn_rand_secret_range | ( | BIGNUM * | r, |
int * | out_is_uniform, | ||
BN_ULONG | min_inclusive, | ||
const BIGNUM * | max_exclusive | ||
) |
Definition at line 297 of file boringssl-with-bazel/src/crypto/fipsmodule/bn/random.c.
|
static |
Definition at line 216 of file boringssl-with-bazel/src/crypto/fipsmodule/bn/random.c.