Home
last modified time | relevance | path

Searched refs:BN_BYTES (Results 1 – 8 of 8) sorted by relevance

/external/boringssl/src/crypto/fipsmodule/bn/
Dbytes.c84 num_words = ((len - 1) / BN_BYTES) + 1; in BN_bin2bn()
85 m = (len - 1) % BN_BYTES; in BN_bin2bn()
104 m = BN_BYTES - 1; in BN_bin2bn()
129 size_t num_words = ((len - 1) / BN_BYTES) + 1; in BN_le2bn()
151 l = in->d[i / BN_BYTES]; in BN_bn2bin()
152 *(out++) = (unsigned char)(l >> (8 * (i % BN_BYTES))) & 0xff; in BN_bn2bin()
167 size_t num_bytes = in->width * BN_BYTES; in BN_bn2le_padded()
185 size_t num_bytes = in->width * BN_BYTES; in BN_bn2bin_padded()
Dinternal.h152 #define BN_BYTES 8 in OPENSSL_MSVC_PRAGMA() macro
168 #define BN_BYTES 4 in OPENSSL_MSVC_PRAGMA()
Ddiv.c862 OPENSSL_memset(&r->d[r->width], 0, (num_words - r->width) * BN_BYTES); in BN_nnmod_pow2()
Dexponentiation.c1124 wvalue = p_bytes[p->width * BN_BYTES - 1]; in BN_mod_exp_mont_consttime()
/external/boringssl/src/crypto/fipsmodule/ec/
Dp256-x86_64_test.cc175 if (bytes.size() != BN_BYTES * P256_LIMBS) { in GetFieldElement()
184 out[P256_LIMBS - 1 - (i / BN_BYTES)] <<= 8; in GetFieldElement()
185 out[P256_LIMBS - 1 - (i / BN_BYTES)] |= bytes[i]; in GetFieldElement()
194 char buf[2 * BN_BYTES + 1]; in FieldElementToString()
Dinternal.h89 #define EC_MAX_WORDS ((EC_MAX_BYTES + BN_BYTES - 1) / BN_BYTES)
/external/boringssl/src/crypto/bn_extra/
Dconvert.c82 width * BN_BYTES * 2 + 1 /* trailing NUL */); in BN_bn2hex()
128 int todo = BN_BYTES * 2; in decode_hex()
/external/ipsec-tools/src/racoon/
Dcrypto_openssl.c2596 *var = vmalloc(bn->top * BN_BYTES);