Searched refs:aadlen (Results 1 – 13 of 13) sorted by relevance
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/ccm/ |
A D | ccm_add_nonce.c | 39 ccm->PAD[x++] = (unsigned char)(((ccm->aadlen > 0) ? (1<<6) : 0) | in ccm_add_nonce() 72 if (ccm->aadlen > 0) { in ccm_add_nonce() 74 if (ccm->aadlen < ((1UL<<16) - (1UL<<8))) { in ccm_add_nonce() 75 ccm->PAD[ccm->x++] ^= (ccm->aadlen>>8) & 255; in ccm_add_nonce() 76 ccm->PAD[ccm->x++] ^= ccm->aadlen & 255; in ccm_add_nonce() 80 ccm->PAD[ccm->x++] ^= (ccm->aadlen>>24) & 255; in ccm_add_nonce() 81 ccm->PAD[ccm->x++] ^= (ccm->aadlen>>16) & 255; in ccm_add_nonce() 82 ccm->PAD[ccm->x++] ^= (ccm->aadlen>>8) & 255; in ccm_add_nonce() 83 ccm->PAD[ccm->x++] ^= ccm->aadlen & 255; in ccm_add_nonce()
|
A D | ccm_init.c | 20 const unsigned char *key, int keylen, int ptlen, int taglen, int aadlen) in ccm_init() argument 38 if (taglen < 4 || taglen > 16 || (taglen % 2) == 1 || aadlen < 0 || ptlen < 0) { in ccm_init() 60 ccm->aadlen = aadlen; in ccm_init()
|
A D | ccm_add_aad.c | 23 if (ccm->aadlen < ccm->current_aadlen + adatalen) { in ccm_add_aad() 41 if (ccm->aadlen == ccm->current_aadlen) { in ccm_add_aad()
|
A D | ccm_process.c | 28 if (ccm->aadlen != ccm->current_aadlen) { in ccm_process()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/ocb3/ |
A D | ocb3_add_aad.c | 45 int ocb3_add_aad(ocb3_state *ocb, const unsigned char *aad, unsigned long aadlen) in ocb3_add_aad() argument 52 if (aadlen == 0) return CRYPT_OK; in ocb3_add_aad() 57 if (l > aadlen) l = aadlen; in ocb3_add_aad() 69 datalen = aadlen - l; in ocb3_add_aad() 73 datalen = aadlen; in ocb3_add_aad()
|
A D | ocb3_test.c | 26 int aadlen; in ocb3_test() 217 … tests[x].aadlen != 0 ? tests[x].aad : NULL, tests[x].aadlen, in ocb3_test() 231 … tests[x].aadlen != 0 ? tests[x].aad : NULL, tests[x].aadlen, in ocb3_test()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/chachapoly/ |
A D | chacha20poly1305_memory.c | 26 const unsigned char *aad, unsigned long aadlen, in chacha20poly1305_memory() argument 44 if (aad && aadlen > 0) { in chacha20poly1305_memory() 45 if ((err = chacha20poly1305_add_aad(&st, aad, aadlen)) != CRYPT_OK) { goto LBL_ERR; } in chacha20poly1305_memory()
|
A D | chacha20poly1305_add_aad.c | 24 st->aadlen += (ulong64)inlen; in chacha20poly1305_add_aad()
|
A D | chacha20poly1305_encrypt.c | 26 padlen = 16 - (unsigned long)(st->aadlen % 16); in chacha20poly1305_encrypt()
|
A D | chacha20poly1305_decrypt.c | 25 padlen = 16 - (unsigned long)(st->aadlen % 16); in chacha20poly1305_decrypt()
|
A D | chacha20poly1305_done.c | 28 STORE64L(st->aadlen, buf); in chacha20poly1305_done()
|
A D | chacha20poly1305_setiv.c | 52 st->aadlen = 0; in chacha20poly1305_setiv()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/ |
A D | tomcrypt_mac.h | 380 int ocb3_add_aad(ocb3_state *ocb, const unsigned char *aad, unsigned long aadlen); 418 aadlen, /* length of the aad */ member 429 const unsigned char *key, int keylen, int ptlen, int taglen, int aadlen); 543 ulong64 aadlen; member 560 const unsigned char *aad, unsigned long aadlen,
|
Completed in 10 milliseconds