/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/ccm/ |
A D | ccm_add_nonce.c | 15 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 D | ccm_test.c | 20 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 D | ccm_memory.c | 36 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 D | ocb3_init.c | 12 …_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 D | ocb3_encrypt_authenticate_memory.c | 30 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 D | ocb3_decrypt_verify_memory.c | 31 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 D | xsalsa20_memory.c | 21 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 D | xsalsa20_setup.c | 55 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 D | eax_test.c | 23 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 D | eax_encrypt_authenticate_memory.c | 30 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 D | eax_decrypt_verify_memory.c | 31 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 D | eax_init.c | 26 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 D | tomcrypt_mac.h | 263 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 D | tomcrypt_cipher.h | 518 const unsigned char *nonce, unsigned long noncelen, 1056 const unsigned char *nonce, unsigned long noncelen, 1060 const unsigned char *nonce, unsigned long noncelen,
|