Home
last modified time | relevance | path

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

/optee_os/core/lib/libtomcrypt/src/encauth/ccm/
A Dccm_add_nonce.c22 const unsigned char *nonce, unsigned long noncelen) in ccm_add_nonce() argument
31 ccm->noncelen = (noncelen > 13) ? 13 : noncelen; in ccm_add_nonce()
32 if ((15 - ccm->noncelen) > ccm->L) { in ccm_add_nonce()
33 ccm->L = 15 - ccm->noncelen; in ccm_add_nonce()
37 if ((ccm->noncelen + ccm->L) > 15) { in ccm_add_nonce()
38 ccm->noncelen = 15 - ccm->L; in ccm_add_nonce()
A Dccm_test.c27 int noncelen; in ccm_test()
142 tests[x].nonce, tests[x].noncelen, in ccm_test()
153 tests[x].nonce, tests[x].noncelen, in ccm_test()
164 if ((err = ccm_add_nonce(&ccm, tests[x].nonce, tests[x].noncelen)) != CRYPT_OK) { in ccm_test()
191 tests[x].nonce, tests[x].noncelen, in ccm_test()
202 if ((err = ccm_add_nonce(&ccm, tests[x].nonce, tests[x].noncelen)) != CRYPT_OK) { in ccm_test()
228 tests[x].nonce, tests[x].noncelen, in ccm_test()
A Dccm_memory.c43 const unsigned char *nonce, unsigned long noncelen, in ccm_memory() argument
94 nonce, noncelen, in ccm_memory()
114 noncelen = (noncelen > 13) ? 13 : noncelen; in ccm_memory()
115 if ((15 - noncelen) > L) { in ccm_memory()
116 L = 15 - noncelen; in ccm_memory()
/optee_os/core/lib/libtomcrypt/src/encauth/ocb3/
A Docb3_init.c19 …_offset_zero(ocb3_state *ocb, const unsigned char *nonce, unsigned long noncelen, unsigned long ta… in _ocb3_int_calc_offset_zero() argument
29 for (x = ocb->block_len-1, y=0; y<(int)noncelen; x--, y++) { in _ocb3_int_calc_offset_zero()
30 iNonce[x] = nonce[noncelen-y-1]; in _ocb3_int_calc_offset_zero()
91 const unsigned char *nonce, unsigned long noncelen, in ocb3_init() argument
109 if (noncelen > (120/8)) { in ocb3_init()
176 _ocb3_int_calc_offset_zero(ocb, nonce, noncelen, taglen); in ocb3_init()
A Docb3_encrypt_authenticate_memory.c37 const unsigned char *nonce, unsigned long noncelen, in ocb3_encrypt_authenticate_memory() argument
54 if ((err = ocb3_init(ocb, cipher, key, keylen, nonce, noncelen, *taglen)) != CRYPT_OK) { in ocb3_encrypt_authenticate_memory()
A Docb3_decrypt_verify_memory.c38 const unsigned char *nonce, unsigned long noncelen, in ocb3_decrypt_verify_memory() argument
71 if ((err = ocb3_init(ocb, cipher, key, keylen, nonce, noncelen, taglen)) != CRYPT_OK) { in ocb3_decrypt_verify_memory()
/optee_os/core/lib/libtomcrypt/src/encauth/eax/
A Deax_test.c30 noncelen, 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.c37 const unsigned char *nonce, unsigned long noncelen, 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.c38 const unsigned char *nonce, unsigned long noncelen, 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()
A Deax_init.c33 const unsigned char *nonce, unsigned long noncelen, in eax_init() argument
79 if ((err = omac_process(omac, nonce, noncelen)) != CRYPT_OK) { in eax_init()
/optee_os/core/lib/libtomcrypt/src/stream/salsa20/
A Dxsalsa20_memory.c28 const unsigned char *nonce, unsigned long noncelen, in xsalsa20_memory() argument
34 if ((err = xsalsa20_setup(&st, key, keylen, nonce, noncelen, rounds)) != CRYPT_OK) goto WIPE_KEY; in xsalsa20_memory()
A Dxsalsa20_setup.c62 const unsigned char *nonce, unsigned long noncelen, in xsalsa20_setup() argument
74 LTC_ARGCHK(noncelen == 24); in xsalsa20_setup()
/optee_os/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_mac.h257 const unsigned char *nonce, unsigned long noncelen,
267 const unsigned char *nonce, unsigned long noncelen,
275 const unsigned char *nonce, unsigned long noncelen,
367 const unsigned char *nonce, unsigned long noncelen,
379 const unsigned char *nonce, unsigned long noncelen,
387 const unsigned char *nonce, unsigned long noncelen,
414 noncelen; /* length of the nonce */ member
428 const unsigned char *nonce, unsigned long noncelen);
444 const unsigned char *nonce, unsigned long noncelen,
A Dtomcrypt_cipher.h516 const unsigned char *nonce, unsigned long noncelen,
1044 const unsigned char *nonce, unsigned long noncelen,
1048 const unsigned char *nonce, unsigned long noncelen,

Completed in 13 milliseconds