Home
last modified time | relevance | path

Searched refs:WORDS_PER_POLY (Results 1 – 3 of 3) sorted by relevance

/external/boringssl/src/crypto/hrss/
Dhrss_test.cc82 p->s.v[WORDS_PER_POLY - 1] &= (UINT64_C(1) << BITS_IN_LAST_WORD) - 1; in poly3_rand()
83 p->a.v[WORDS_PER_POLY - 1] &= (UINT64_C(1) << BITS_IN_LAST_WORD) - 1; in poly3_rand()
85 for (size_t j = 0; j < WORDS_PER_POLY; j++) { in poly3_rand()
147 poly3_word_add(&r.s.v[WORDS_PER_POLY - 1], &r.a.v[WORDS_PER_POLY - 1], 0, in TEST()
157 x700.a.v[WORDS_PER_POLY-1] = UINT64_C(1) << (BITS_IN_LAST_WORD - 1); in TEST()
160 for (size_t i = 0; i < WORDS_PER_POLY-1; i++) { in TEST()
165 result.s.v[WORDS_PER_POLY - 1]); in TEST()
166 EXPECT_EQ(result.s.v[WORDS_PER_POLY - 1], result.a.v[WORDS_PER_POLY - 1]); in TEST()
Dhrss.c331 OPENSSL_memset(&p->v[0], 0, sizeof(crypto_word_t) * WORDS_PER_POLY); in poly2_zero()
337 for (size_t i = 0; i < WORDS_PER_POLY; i++) { in poly2_cmov()
360 crypto_word_t carry = in->v[WORDS_PER_POLY - 1]; in poly2_rotr_words()
367 out->v[WORDS_PER_POLY - 1] = carry; in poly2_rotr_words()
388 crypto_word_t carry = in->v[WORDS_PER_POLY - 1] << (BITS_PER_WORD - bits); in poly2_rotr_bits()
390 for (size_t i = WORDS_PER_POLY - 2; i < WORDS_PER_POLY; i--) { in poly2_rotr_bits()
396 in->v[WORDS_PER_POLY - 1] >> bits; in poly2_rotr_bits()
398 out->v[WORDS_PER_POLY - 1] = last_word; in poly2_rotr_bits()
404 assert(p->v[WORDS_PER_POLY-1] >> BITS_IN_LAST_WORD == 0); in HRSS_poly2_rotr_consttime()
431 for (size_t i = 0; i < WORDS_PER_POLY; i++) { in poly2_cswap()
[all …]
Dinternal.h28 #define WORDS_PER_POLY ((N + BITS_PER_WORD - 1) / BITS_PER_WORD) macro
32 crypto_word_t v[WORDS_PER_POLY];