Home
last modified time | relevance | path

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

/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/ccm/
A Dccm_memory.c53 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 Dccm_test.c22 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 Deax_init.c27 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 Deax_test.c24 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 Deax_encrypt_authenticate_memory.c31 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 Deax_decrypt_verify_memory.c32 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 Dtomcrypt_mac.h264 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 Dtomcrypt_cipher.h519 const unsigned char *header, unsigned long headerlen,

Completed in 10 milliseconds