/optee_os/core/lib/libtomcrypt/src/encauth/ccm/ |
A D | ccm_add_nonce.c | 22 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 D | ccm_test.c | 27 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 D | ccm_memory.c | 43 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 D | ocb3_init.c | 19 …_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 D | ocb3_encrypt_authenticate_memory.c | 37 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 D | ocb3_decrypt_verify_memory.c | 38 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 D | eax_test.c | 30 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 D | eax_encrypt_authenticate_memory.c | 37 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 D | eax_decrypt_verify_memory.c | 38 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 D | eax_init.c | 33 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 D | xsalsa20_memory.c | 28 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 D | xsalsa20_setup.c | 62 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 D | tomcrypt_mac.h | 257 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 D | tomcrypt_cipher.h | 516 const unsigned char *nonce, unsigned long noncelen, 1044 const unsigned char *nonce, unsigned long noncelen, 1048 const unsigned char *nonce, unsigned long noncelen,
|