Home
last modified time | relevance | path

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

/external/boringssl/src/crypto/bn/
Dconvert.c91 num_words = ((len - 1) / BN_BYTES) + 1; in BN_bin2bn()
92 m = (len - 1) % BN_BYTES; in BN_bin2bn()
111 m = BN_BYTES - 1; in BN_bin2bn()
127 l = in->d[i / BN_BYTES]; in BN_bn2bin()
128 *(out++) = (unsigned char)(l >> (8 * (i % BN_BYTES))) & 0xff; in BN_bn2bin()
174 if ((size_t)in->top > (len + (BN_BYTES - 1)) / BN_BYTES) { in BN_bn2bin_padded()
177 if ((len % BN_BYTES) != 0) { in BN_bn2bin_padded()
178 l = read_word_padded(in, len / BN_BYTES); in BN_bn2bin_padded()
179 if (l >> (8 * (len % BN_BYTES)) != 0) { in BN_bn2bin_padded()
193 l = read_word_padded(in, i / BN_BYTES); in BN_bn2bin_padded()
[all …]
Dinternal.h151 #define BN_BYTES 8 macro
166 #define BN_BYTES 4 macro
Dexponentiation.c1102 wvalue = p_bytes[p->top * BN_BYTES - 1]; in BN_mod_exp_mont_consttime()
/external/boringssl/src/crypto/ec/
Dp256-x86_64.c280 for (j = 0; j < p_scalar->top * BN_BYTES; j += BN_BYTES) { in ecp_nistz256_windowed_mul()
281 BN_ULONG d = p_scalar->d[j / BN_BYTES]; in ecp_nistz256_windowed_mul()
287 if (BN_BYTES == 8) { in ecp_nistz256_windowed_mul()
438 for (i = 0; i < g_scalar->top * BN_BYTES; i += BN_BYTES) { in ecp_nistz256_points_mul()
439 BN_ULONG d = g_scalar->d[i / BN_BYTES]; in ecp_nistz256_points_mul()
445 if (BN_BYTES == 8) { in ecp_nistz256_points_mul()
/external/ipsec-tools/src/racoon/
Dcrypto_openssl.c2596 *var = vmalloc(bn->top * BN_BYTES);