Home
last modified time | relevance | path

Searched refs:poly (Results 1 – 10 of 10) sorted by relevance

/optee_os-3.20.0/core/lib/libtomcrypt/src/mac/pmac/
A Dpmac_init.c40 int poly, x, y, m, err; in pmac_init() local
53 for (poly = 0; poly < (int)(sizeof(polys)/sizeof(polys[0])); poly++) { in pmac_init()
54 if (polys[poly].len == pmac->block_len) { in pmac_init()
58 if (poly >= (int)(sizeof(polys)/sizeof(polys[0]))) { in pmac_init()
61 if (polys[poly].len != pmac->block_len) { in pmac_init()
100 pmac->Ls[x][y] ^= polys[poly].poly_mul[y]; in pmac_init()
116 pmac->Lr[x] ^= polys[poly].poly_div[x]; in pmac_init()
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/ocb/
A Docb_init.c42 int poly, x, y, m, err; in ocb_init() local
56 for (poly = 0; poly < x; poly++) { in ocb_init()
57 if (polys[poly].len == ocb->block_len) { in ocb_init()
61 if (poly == x) { in ocb_init()
64 if (polys[poly].len != ocb->block_len) { in ocb_init()
98 ocb->Ls[x][y] ^= polys[poly].poly_mul[y]; in ocb_init()
114 ocb->Lr[x] ^= polys[poly].poly_div[x]; in ocb_init()
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/ocb3/
A Docb3_init.c87 int poly, x, y, m, err; in ocb3_init() local
120 for (poly = 0; poly < x; poly++) { in ocb3_init()
121 if (polys[poly].len == ocb->block_len) { in ocb3_init()
125 if (poly == x) { in ocb3_init()
128 if (polys[poly].len != ocb->block_len) { in ocb3_init()
164 ocb3_int_xor_blocks(current, current, polys[poly].poly_mul, ocb->block_len); in ocb3_init()
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/chachapoly/
A Dchacha20poly1305_done.c26 if ((err = poly1305_process(&st->poly, padzero, padlen)) != CRYPT_OK) return err; in chacha20poly1305_done()
30 if ((err = poly1305_process(&st->poly, buf, 16)) != CRYPT_OK) return err; in chacha20poly1305_done()
31 if ((err = poly1305_done(&st->poly, tag, taglen)) != CRYPT_OK) return err; in chacha20poly1305_done()
A Dchacha20poly1305_encrypt.c28 if ((err = poly1305_process(&st->poly, padzero, padlen)) != CRYPT_OK) return err; in chacha20poly1305_encrypt()
32 if ((err = poly1305_process(&st->poly, out, inlen)) != CRYPT_OK) return err; in chacha20poly1305_encrypt()
A Dchacha20poly1305_decrypt.c27 if ((err = poly1305_process(&st->poly, padzero, padlen)) != CRYPT_OK) return err; in chacha20poly1305_decrypt()
32 if ((err = poly1305_process(&st->poly, in, inlen)) != CRYPT_OK) return err; in chacha20poly1305_decrypt()
A Dchacha20poly1305_add_aad.c23 if ((err = poly1305_process(&st->poly, in, inlen)) != CRYPT_OK) return err; in chacha20poly1305_add_aad()
A Dchacha20poly1305_setiv.c50 if ((err = poly1305_init(&st->poly, polykey, 32)) != CRYPT_OK) return err; in chacha20poly1305_setiv()
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/gcm/
A Dgcm_gf_mult.c66 static const unsigned char poly[] = { 0x00, 0xE1 }; variable
90 V[0] ^= poly[z]; in gcm_gf_mult()
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_mac.h541 poly1305_state poly; member

Completed in 11 milliseconds