Go to the documentation of this file.
66 #include "../delocate.h"
153 static const BN_ULONG kOneLimbs[1] = { 1 };
154 out->d = (BN_ULONG*) kOneLimbs;
176 mask = (0
u - (mask >> (BN_BITS2 - 1)));
186 mask = (0
u - (mask >> (BN_BITS2 - 1)));
192 mask = (0
u - (mask >> (BN_BITS2 - 1)));
198 mask = (0
u - (mask >> (BN_BITS2 - 1)));
204 mask = (0
u - (mask >> (BN_BITS2 - 1)));
210 mask = (0
u - (mask >> (BN_BITS2 - 1)));
257 if (
value <= BN_MASK2) {
266 bn->
d[0] = (BN_ULONG)
value;
267 bn->
d[1] = (BN_ULONG)(
value >> 32);
271 #error "BN_BITS2 must be 32 or 64."
290 bn->
d = (BN_ULONG *)
words;
346 if (
words > (INT_MAX / (4 * BN_BITS2))) {
380 #if defined(OPENSSL_PPC64LE)
417 const BN_ULONG *
b,
size_t num) {
418 for (
size_t i = 0;
i <
num;
i++) {
420 "crypto_word_t is too small");
427 while (
ret > 0 && bn->
d[
ret - 1] == 0) {
435 if (bn->
width == 0) {
#define BN_FLG_STATIC_DATA
void bn_set_static_words(BIGNUM *bn, const BN_ULONG *words, size_t num)
int bn_fits_in_words(const BIGNUM *bn, size_t num)
int bn_set_words(BIGNUM *bn, const BN_ULONG *words, size_t num)
#define OPENSSL_PUT_ERROR(library, reason)
static int copy(grpc_slice_buffer *input, grpc_slice_buffer *output)
int BN_is_negative(const BIGNUM *bn)
int bn_minimal_width(const BIGNUM *bn)
OPENSSL_EXPORT pem_password_cb void * u
std::vector< std::string > words
void BN_clear(BIGNUM *bn)
#define BN_R_NEGATIVE_NUMBER
void bn_set_minimal_width(BIGNUM *bn)
void BN_set_negative(BIGNUM *bn, int sign)
static void * OPENSSL_memset(void *dst, int c, size_t n)
BIGNUM * BN_copy(BIGNUM *dest, const BIGNUM *src)
const OPENSSL_EXPORT BIGNUM * BN_value_one(void)
int bn_expand(BIGNUM *bn, size_t bits)
void bn_select_words(BN_ULONG *r, BN_ULONG mask, const BN_ULONG *a, const BN_ULONG *b, size_t num)
#define BN_R_BIGNUM_TOO_LONG
unsigned BN_num_bytes(const BIGNUM *bn)
void BN_clear_free(BIGNUM *bn)
unsigned __int64 uint64_t
static void * OPENSSL_memcpy(void *dst, const void *src, size_t n)
OPENSSL_EXPORT ASN1_BIT_STRING * bits
int BN_set_u64(BIGNUM *bn, uint64_t value)
int bn_copy_words(BN_ULONG *out, size_t num, const BIGNUM *bn)
static crypto_word_t value_barrier_w(crypto_word_t a)
int BN_set_word(BIGNUM *bn, BN_ULONG value)
UniquePtr< SSL_SESSION > ret
static void * OPENSSL_memmove(void *dst, const void *src, size_t n)
BIGNUM * BN_dup(const BIGNUM *src)
static crypto_word_t constant_time_select_w(crypto_word_t mask, crypto_word_t a, crypto_word_t b)
unsigned BN_num_bits_word(BN_ULONG l)
int bn_resize_words(BIGNUM *bn, size_t words)
#define BN_R_EXPAND_ON_STATIC_BIGNUM_DATA
DEFINE_METHOD_FUNCTION(BIGNUM, BN_value_one)
int bn_wexpand(BIGNUM *bn, size_t words)
if(p->owned &&p->wrapped !=NULL)
#define OPENSSL_STATIC_ASSERT(cond, msg)
unsigned BN_num_bits(const BIGNUM *bn)
#define ERR_R_MALLOC_FAILURE
grpc
Author(s):
autogenerated on Fri May 16 2025 02:57:49