Home
last modified time | relevance | path

Searched refs:noncelen (Results 1 – 14 of 14) sorted by relevance

/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/ccm/
A Dccm_add_nonce.c15 const unsigned char *nonce, unsigned long noncelen) in ccm_add_nonce() argument
24 ccm->noncelen = (noncelen > 13) ? 13 : noncelen; in ccm_add_nonce()
25 if ((15 - ccm->noncelen) > ccm->L) { in ccm_add_nonce()
26 ccm->L = 15 - ccm->noncelen; in ccm_add_nonce()
33 if ((ccm->noncelen + ccm->L) > 15) { in ccm_add_nonce()
34 ccm->noncelen = 15 - ccm->L; in ccm_add_nonce()
A Dccm_test.c20 int noncelen; in ccm_test()
135 tests[x].nonce, tests[x].noncelen, in ccm_test()
146 tests[x].nonce, tests[x].noncelen, in ccm_test()
157 if ((err = ccm_add_nonce(&ccm, tests[x].nonce, tests[x].noncelen)) != CRYPT_OK) { in ccm_test()
184 tests[x].nonce, tests[x].noncelen, in ccm_test()
195 if ((err = ccm_add_nonce(&ccm, tests[x].nonce, tests[x].noncelen)) != CRYPT_OK) { in ccm_test()
221 tests[x].nonce, tests[x].noncelen, in ccm_test()
A Dccm_memory.c36 const unsigned char *nonce, unsigned long noncelen, in ccm_memory() argument
87 nonce, noncelen, in ccm_memory()
107 noncelen = (noncelen > 13) ? 13 : noncelen; in ccm_memory()
108 if ((15 - noncelen) > L) { in ccm_memory()
109 L = 15 - noncelen; in ccm_memory()
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/ocb3/
A Docb3_init.c12 …_offset_zero(ocb3_state *ocb, const unsigned char *nonce, unsigned long noncelen, unsigned long ta… in s_ocb3_int_calc_offset_zero() argument
22 for (x = ocb->block_len-1, y=0; y<(int)noncelen; x--, y++) { in s_ocb3_int_calc_offset_zero()
23 iNonce[x] = nonce[noncelen-y-1]; in s_ocb3_int_calc_offset_zero()
84 const unsigned char *nonce, unsigned long noncelen, in ocb3_init() argument
102 if (noncelen > (120/8)) { in ocb3_init()
169 s_ocb3_int_calc_offset_zero(ocb, nonce, noncelen, taglen); in ocb3_init()
A Docb3_encrypt_authenticate_memory.c30 const unsigned char *nonce, unsigned long noncelen, in ocb3_encrypt_authenticate_memory() argument
47 if ((err = ocb3_init(ocb, cipher, key, keylen, nonce, noncelen, *taglen)) != CRYPT_OK) { in ocb3_encrypt_authenticate_memory()
A Docb3_decrypt_verify_memory.c31 const unsigned char *nonce, unsigned long noncelen, in ocb3_decrypt_verify_memory() argument
64 if ((err = ocb3_init(ocb, cipher, key, keylen, nonce, noncelen, taglen)) != CRYPT_OK) { in ocb3_decrypt_verify_memory()
/optee_os-3.20.0/core/lib/libtomcrypt/src/stream/salsa20/
A Dxsalsa20_memory.c21 const unsigned char *nonce, unsigned long noncelen, in xsalsa20_memory() argument
27 if ((err = xsalsa20_setup(&st, key, keylen, nonce, noncelen, rounds)) != CRYPT_OK) goto WIPE_KEY; in xsalsa20_memory()
A Dxsalsa20_setup.c55 const unsigned char *nonce, unsigned long noncelen, in xsalsa20_setup() argument
67 LTC_ARGCHK(noncelen == 24); in xsalsa20_setup()
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/eax/
A Deax_test.c23 noncelen, 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.c30 const unsigned char *nonce, unsigned long noncelen, 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.c31 const unsigned char *nonce, unsigned long noncelen, 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()
A Deax_init.c26 const unsigned char *nonce, unsigned long noncelen, in eax_init() argument
72 if ((err = omac_process(omac, nonce, noncelen)) != CRYPT_OK) { in eax_init()
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_mac.h263 const unsigned char *nonce, unsigned long noncelen,
273 const unsigned char *nonce, unsigned long noncelen,
281 const unsigned char *nonce, unsigned long noncelen,
373 const unsigned char *nonce, unsigned long noncelen,
385 const unsigned char *nonce, unsigned long noncelen,
393 const unsigned char *nonce, unsigned long noncelen,
420 noncelen; /* length of the nonce */ member
434 const unsigned char *nonce, unsigned long noncelen);
450 const unsigned char *nonce, unsigned long noncelen,
A Dtomcrypt_cipher.h518 const unsigned char *nonce, unsigned long noncelen,
1056 const unsigned char *nonce, unsigned long noncelen,
1060 const unsigned char *nonce, unsigned long noncelen,

Completed in 25 milliseconds