Searched refs:headerlen (Results 1 – 8 of 8) sorted by relevance
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/ccm/ |
A D | ccm_memory.c | 53 if (headerlen > 0) { in ccm_memory() 88 header, headerlen, in ccm_memory() 174 if (headerlen > 0) { in ccm_memory() 178 if (headerlen < ((1UL<<16) - (1UL<<8))) { in ccm_memory() 179 PAD[x++] ^= (headerlen>>8) & 255; in ccm_memory() 180 PAD[x++] ^= headerlen & 255; in ccm_memory() 184 PAD[x++] ^= (headerlen>>24) & 255; in ccm_memory() 185 PAD[x++] ^= (headerlen>>16) & 255; in ccm_memory() 186 PAD[x++] ^= (headerlen>>8) & 255; in ccm_memory() 187 PAD[x++] ^= headerlen & 255; in ccm_memory() [all …]
|
A D | ccm_test.c | 22 int headerlen; in ccm_test() 136 tests[x].header, tests[x].headerlen, in ccm_test() 147 tests[x].header, tests[x].headerlen, in ccm_test() 154 …t(&ccm, idx, tests[x].key, 16, tests[x].ptlen, tests[x].taglen, tests[x].headerlen)) != CRYPT_OK) { in ccm_test() 160 if ((err = ccm_add_aad(&ccm, tests[x].header, tests[x].headerlen)) != CRYPT_OK) { in ccm_test() 185 tests[x].header, tests[x].headerlen, in ccm_test() 192 …t(&ccm, idx, tests[x].key, 16, tests[x].ptlen, tests[x].taglen, tests[x].headerlen)) != CRYPT_OK) { in ccm_test() 198 if ((err = ccm_add_aad(&ccm, tests[x].header, tests[x].headerlen)) != CRYPT_OK) { in ccm_test() 222 tests[x].header, tests[x].headerlen, in ccm_test()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/eax/ |
A D | eax_init.c | 27 const unsigned char *header, unsigned long headerlen) in eax_init() argument 38 if (headerlen > 0) { in eax_init() 94 if (headerlen != 0) { in eax_init() 95 if ((err = omac_process(&eax->headeromac, header, headerlen)) != CRYPT_OK) { in eax_init()
|
A D | eax_test.c | 24 headerlen, in eax_test() 222 tests[x].nonce, tests[x].noncelen, tests[x].header, tests[x].headerlen, in eax_test() 233 tests[x].nonce, tests[x].noncelen, tests[x].header, tests[x].headerlen, in eax_test()
|
A D | eax_encrypt_authenticate_memory.c | 31 const unsigned char *header, unsigned long headerlen, in eax_encrypt_authenticate_memory() argument 47 if ((err = eax_init(eax, cipher, key, keylen, nonce, noncelen, header, headerlen)) != CRYPT_OK) { in eax_encrypt_authenticate_memory()
|
A D | eax_decrypt_verify_memory.c | 32 const unsigned char *header, unsigned long headerlen, in eax_decrypt_verify_memory() argument 68 if ((err = eax_init(eax, cipher, key, keylen, nonce, noncelen, header, headerlen)) != CRYPT_OK) { in eax_decrypt_verify_memory()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/ |
A D | tomcrypt_mac.h | 264 const unsigned char *header, unsigned long headerlen); 274 const unsigned char *header, unsigned long headerlen, 282 const unsigned char *header, unsigned long headerlen, 451 const unsigned char *header, unsigned long headerlen,
|
A D | tomcrypt_cipher.h | 519 const unsigned char *header, unsigned long headerlen,
|
Completed in 10 milliseconds