Home
last modified time | relevance | path

Searched refs:headerlen (Results 1 – 8 of 8) sorted by relevance

/optee_os/core/lib/libtomcrypt/src/encauth/ccm/
A Dccm_memory.c60 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 Dccm_test.c29 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 Deax_init.c34 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 Deax_test.c31 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 Deax_encrypt_authenticate_memory.c38 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 Deax_decrypt_verify_memory.c39 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 Dtomcrypt_mac.h258 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 Dtomcrypt_cipher.h517 const unsigned char *header, unsigned long headerlen,

Completed in 14 milliseconds