Searched refs:headerlen (Results 1 – 8 of 8) sorted by relevance
/optee_os/core/lib/libtomcrypt/src/encauth/ccm/ |
A D | ccm_memory.c | 60 if (headerlen > 0) { in ccm_memory() 95 header, headerlen, in ccm_memory() 178 if (headerlen > 0) { in ccm_memory() 182 if (headerlen < ((1UL<<16) - (1UL<<8))) { in ccm_memory() 183 PAD[x++] ^= (headerlen>>8) & 255; in ccm_memory() 184 PAD[x++] ^= headerlen & 255; in ccm_memory() 188 PAD[x++] ^= (headerlen>>24) & 255; in ccm_memory() 189 PAD[x++] ^= (headerlen>>16) & 255; in ccm_memory() 190 PAD[x++] ^= (headerlen>>8) & 255; in ccm_memory() 191 PAD[x++] ^= headerlen & 255; in ccm_memory() [all …]
|
A D | ccm_test.c | 29 int headerlen; in ccm_test() 143 tests[x].header, tests[x].headerlen, in ccm_test() 154 tests[x].header, tests[x].headerlen, in ccm_test() 161 …t(&ccm, idx, tests[x].key, 16, tests[x].ptlen, tests[x].taglen, tests[x].headerlen)) != CRYPT_OK) { in ccm_test() 167 if ((err = ccm_add_aad(&ccm, tests[x].header, tests[x].headerlen)) != CRYPT_OK) { in ccm_test() 192 tests[x].header, tests[x].headerlen, in ccm_test() 199 …t(&ccm, idx, tests[x].key, 16, tests[x].ptlen, tests[x].taglen, tests[x].headerlen)) != CRYPT_OK) { in ccm_test() 205 if ((err = ccm_add_aad(&ccm, tests[x].header, tests[x].headerlen)) != CRYPT_OK) { in ccm_test() 229 tests[x].header, tests[x].headerlen, in ccm_test()
|
/optee_os/core/lib/libtomcrypt/src/encauth/eax/ |
A D | eax_init.c | 34 const unsigned char *header, unsigned long headerlen) in eax_init() argument 45 if (headerlen > 0) { in eax_init() 101 if (headerlen != 0) { in eax_init() 102 if ((err = omac_process(&eax->headeromac, header, headerlen)) != CRYPT_OK) { in eax_init()
|
A D | eax_test.c | 31 headerlen, in eax_test() 229 tests[x].nonce, tests[x].noncelen, tests[x].header, tests[x].headerlen, in eax_test() 240 tests[x].nonce, tests[x].noncelen, tests[x].header, tests[x].headerlen, in eax_test()
|
A D | eax_encrypt_authenticate_memory.c | 38 const unsigned char *header, unsigned long headerlen, in eax_encrypt_authenticate_memory() argument 54 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 | 39 const unsigned char *header, unsigned long headerlen, in eax_decrypt_verify_memory() argument 75 if ((err = eax_init(eax, cipher, key, keylen, nonce, noncelen, header, headerlen)) != CRYPT_OK) { in eax_decrypt_verify_memory()
|
/optee_os/core/lib/libtomcrypt/src/headers/ |
A D | tomcrypt_mac.h | 258 const unsigned char *header, unsigned long headerlen); 268 const unsigned char *header, unsigned long headerlen, 276 const unsigned char *header, unsigned long headerlen, 445 const unsigned char *header, unsigned long headerlen,
|
A D | tomcrypt_cipher.h | 517 const unsigned char *header, unsigned long headerlen,
|
Completed in 14 milliseconds