Home
last modified time | relevance | path

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

/external/boringssl/src/crypto/fipsmodule/ec/
Dp256-x86_64.c236 crypto_word_t wvalue = p_str[(index - 1) / 8]; in ecp_nistz256_windowed_mul() local
237 wvalue = (wvalue >> ((index - 1) % 8)) & kMask; in ecp_nistz256_windowed_mul()
239 ecp_nistz256_select_w5(r, table, booth_recode_w5(wvalue) >> 1); in ecp_nistz256_windowed_mul()
245 wvalue = (crypto_word_t)p_str[off] | (crypto_word_t)p_str[off + 1] << 8; in ecp_nistz256_windowed_mul()
246 wvalue = (wvalue >> ((index - 1) % 8)) & kMask; in ecp_nistz256_windowed_mul()
248 wvalue = booth_recode_w5(wvalue); in ecp_nistz256_windowed_mul()
250 ecp_nistz256_select_w5(&h, table, wvalue >> 1); in ecp_nistz256_windowed_mul()
253 copy_conditional(h.Y, tmp, (wvalue & 1)); in ecp_nistz256_windowed_mul()
268 wvalue = p_str[0]; in ecp_nistz256_windowed_mul()
269 wvalue = (wvalue << 1) & kMask; in ecp_nistz256_windowed_mul()
[all …]
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/ec/
Dp256-x86_64.c236 unsigned wvalue = p_str[(index - 1) / 8]; in ecp_nistz256_windowed_mul() local
237 wvalue = (wvalue >> ((index - 1) % 8)) & kMask; in ecp_nistz256_windowed_mul()
239 ecp_nistz256_select_w5(r, table, booth_recode_w5(wvalue) >> 1); in ecp_nistz256_windowed_mul()
245 wvalue = p_str[off] | p_str[off + 1] << 8; in ecp_nistz256_windowed_mul()
246 wvalue = (wvalue >> ((index - 1) % 8)) & kMask; in ecp_nistz256_windowed_mul()
248 wvalue = booth_recode_w5(wvalue); in ecp_nistz256_windowed_mul()
250 ecp_nistz256_select_w5(&h, table, wvalue >> 1); in ecp_nistz256_windowed_mul()
253 copy_conditional(h.Y, tmp, (wvalue & 1)); in ecp_nistz256_windowed_mul()
268 wvalue = p_str[0]; in ecp_nistz256_windowed_mul()
269 wvalue = (wvalue << 1) & kMask; in ecp_nistz256_windowed_mul()
[all …]
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/bn/
Dexponentiation.c503 int wvalue; // The 'value' of the window in mod_exp_recp() local
523 wvalue = 1; in mod_exp_recp()
530 wvalue <<= (i - wend); in mod_exp_recp()
531 wvalue |= 1; in mod_exp_recp()
548 if (!BN_mod_mul_reciprocal(r, r, val[wvalue >> 1], &recp, ctx)) { in mod_exp_recp()
672 int wvalue = 1; in BN_mod_exp_mont() local
676 wvalue <<= (i - wsize); in BN_mod_exp_mont()
677 wvalue |= 1; in BN_mod_exp_mont()
691 assert(wvalue & 1); in BN_mod_exp_mont()
692 assert(wvalue < (1 << window)); in BN_mod_exp_mont()
[all …]
Drsaz_exp.c192 int wvalue = p_str[127] >> 3; in RSAZ_1024_mod_exp_avx2() local
193 rsaz_1024_gather5_avx2(result, table_s, wvalue); in RSAZ_1024_mod_exp_avx2()
202 wvalue = wvalue_16; in RSAZ_1024_mod_exp_avx2()
203 wvalue = (wvalue >> (index % 8)) & 31; in RSAZ_1024_mod_exp_avx2()
206 rsaz_1024_gather5_avx2(a_inv, table_s, wvalue); // Borrow |a_inv|. in RSAZ_1024_mod_exp_avx2()
213 wvalue = p_str[0] & 15; in RSAZ_1024_mod_exp_avx2()
215 rsaz_1024_gather5_avx2(a_inv, table_s, wvalue); // Borrow |a_inv|. in RSAZ_1024_mod_exp_avx2()
/external/boringssl/src/crypto/fipsmodule/bn/
Dexponentiation.c503 int wvalue; // The 'value' of the window in mod_exp_recp() local
523 wvalue = 1; in mod_exp_recp()
530 wvalue <<= (i - wend); in mod_exp_recp()
531 wvalue |= 1; in mod_exp_recp()
548 if (!BN_mod_mul_reciprocal(r, r, val[wvalue >> 1], &recp, ctx)) { in mod_exp_recp()
672 int wvalue = 1; in BN_mod_exp_mont() local
676 wvalue <<= (i - wsize); in BN_mod_exp_mont()
677 wvalue |= 1; in BN_mod_exp_mont()
691 assert(wvalue & 1); in BN_mod_exp_mont()
692 assert(wvalue < (1 << window)); in BN_mod_exp_mont()
[all …]
Drsaz_exp.c192 int wvalue = p_str[127] >> 3; in RSAZ_1024_mod_exp_avx2() local
193 rsaz_1024_gather5_avx2(result, table_s, wvalue); in RSAZ_1024_mod_exp_avx2()
202 wvalue = wvalue_16; in RSAZ_1024_mod_exp_avx2()
203 wvalue = (wvalue >> (index % 8)) & 31; in RSAZ_1024_mod_exp_avx2()
206 rsaz_1024_gather5_avx2(a_inv, table_s, wvalue); // Borrow |a_inv|. in RSAZ_1024_mod_exp_avx2()
213 wvalue = p_str[0] & 15; in RSAZ_1024_mod_exp_avx2()
215 rsaz_1024_gather5_avx2(a_inv, table_s, wvalue); // Borrow |a_inv|. in RSAZ_1024_mod_exp_avx2()
/external/rust/crates/ring/crypto/fipsmodule/ec/
Decp_nistz384.inl160 static void add_precomputed_w5(P384_POINT *r, crypto_word wvalue, argument
164 booth_recode(&recoded_is_negative, &recoded, wvalue, 5);
223 crypto_word wvalue = p_str[(index - 1) / 8]; local
224 wvalue = (wvalue >> ((index - 1) % 8)) & kMask;
226 booth_recode(&recoded_is_negative, &recoded, wvalue, 5);
235 wvalue = p_str[off] | p_str[off + 1] << 8;
236 wvalue = (wvalue >> ((index - 1) % 8)) & kMask;
237 add_precomputed_w5(r, wvalue, table);
250 wvalue = p_str[0];
251 wvalue = (wvalue << 1) & kMask;
[all …]
/external/python/cpython3/Modules/_ctypes/
Dcfield.c1424 wchar_t *wvalue = PyUnicode_AsWideCharString(value, &wsize); in BSTR_set() local
1425 if (wvalue == NULL) { in BSTR_set()
1430 PyMem_Free(wvalue); in BSTR_set()
1433 bstr = SysAllocStringLen(wvalue, (unsigned)wsize); in BSTR_set()
1434 PyMem_Free(wvalue); in BSTR_set()