Searched refs:poly (Results 1 – 10 of 10) sorted by relevance
/optee_os-3.20.0/core/lib/libtomcrypt/src/mac/pmac/ |
A D | pmac_init.c | 40 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 D | ocb_init.c | 42 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 D | ocb3_init.c | 87 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 D | chacha20poly1305_done.c | 26 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 D | chacha20poly1305_encrypt.c | 28 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 D | chacha20poly1305_decrypt.c | 27 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 D | chacha20poly1305_add_aad.c | 23 if ((err = poly1305_process(&st->poly, in, inlen)) != CRYPT_OK) return err; in chacha20poly1305_add_aad()
|
A D | chacha20poly1305_setiv.c | 50 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 D | gcm_gf_mult.c | 66 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 D | tomcrypt_mac.h | 541 poly1305_state poly; member
|
Completed in 11 milliseconds