Go to the documentation of this file.
84 num_words = ((
len - 1) / BN_BYTES) + 1;
85 m = (
len - 1) % BN_BYTES;
95 assert(num_words <= INT_MAX);
96 ret->width = (
int)num_words;
100 word = (word << 8) | *(
in++);
102 ret->d[--num_words] = word;
129 size_t num_words = ((
len - 1) / BN_BYTES) + 1;
134 ret->width = num_words;
137 ret->d[num_words - 1] = 0;
151 l =
in->d[
i / BN_BYTES];
152 *(
out++) = (
unsigned char)(
l >> (8 * (
i % BN_BYTES))) & 0xff;
159 for (
size_t i =
len;
i < num_bytes;
i++) {
167 size_t num_bytes =
in->width * BN_BYTES;
168 if (
len < num_bytes) {
185 size_t num_bytes =
in->width * BN_BYTES;
186 if (
len < num_bytes) {
195 for (
size_t i = 0;
i < num_bytes;
i++) {
222 #if defined(OPENSSL_32_BIT)
int BN_bn2le_padded(uint8_t *out, size_t len, const BIGNUM *in)
size_t BN_bn2bin(const BIGNUM *in, uint8_t *out)
int BN_get_u64(const BIGNUM *bn, uint64_t *out)
static void * OPENSSL_memset(void *dst, int c, size_t n)
BN_ULONG BN_get_word(const BIGNUM *bn)
unsigned __int64 uint64_t
static void * OPENSSL_memcpy(void *dst, const void *src, size_t n)
BIGNUM * BN_bin2bn(const uint8_t *in, size_t len, BIGNUM *ret)
BIGNUM * BN_le2bn(const uint8_t *in, size_t len, BIGNUM *ret)
UniquePtr< SSL_SESSION > ret
int BN_bn2bin_padded(uint8_t *out, size_t len, const BIGNUM *in)
if(p->owned &&p->wrapped !=NULL)
static int fits_in_bytes(const uint8_t *bytes, size_t num_bytes, size_t len)
grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:58:42