Home
last modified time | relevance | path

Searched refs:aadlen (Results 1 – 13 of 13) sorted by relevance

/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/ccm/
A Dccm_add_nonce.c39 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 Dccm_init.c20 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 Dccm_add_aad.c23 if (ccm->aadlen < ccm->current_aadlen + adatalen) { in ccm_add_aad()
41 if (ccm->aadlen == ccm->current_aadlen) { in ccm_add_aad()
A Dccm_process.c28 if (ccm->aadlen != ccm->current_aadlen) { in ccm_process()
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/ocb3/
A Docb3_add_aad.c45 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 Docb3_test.c26 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 Dchacha20poly1305_memory.c26 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 Dchacha20poly1305_add_aad.c24 st->aadlen += (ulong64)inlen; in chacha20poly1305_add_aad()
A Dchacha20poly1305_encrypt.c26 padlen = 16 - (unsigned long)(st->aadlen % 16); in chacha20poly1305_encrypt()
A Dchacha20poly1305_decrypt.c25 padlen = 16 - (unsigned long)(st->aadlen % 16); in chacha20poly1305_decrypt()
A Dchacha20poly1305_done.c28 STORE64L(st->aadlen, buf); in chacha20poly1305_done()
A Dchacha20poly1305_setiv.c52 st->aadlen = 0; in chacha20poly1305_setiv()
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_mac.h380 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