/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/chachapoly/ |
A D | chacha20poly1305_test.c | 17 unsigned char aad[] = { 0x50, 0x51, 0x52, 0x53, 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7 }; in chacha20poly1305_test() 39 if ((err = chacha20poly1305_add_aad(&st1, aad, sizeof(aad))) != CRYPT_OK) return err; in chacha20poly1305_test() 56 if ((err = chacha20poly1305_add_aad(&st2, aad, sizeof(aad))) != CRYPT_OK) return err; in chacha20poly1305_test() 67 …if ((err = chacha20poly1305_memory(k, sizeof(k), i12, sizeof(i12), aad, sizeof(aad), (unsigned cha… in chacha20poly1305_test() 75 if ((err = chacha20poly1305_memory(k, sizeof(k), i12, sizeof(i12), aad, sizeof(aad), in chacha20poly1305_test() 82 if ((err = chacha20poly1305_add_aad(&st1, aad, sizeof(aad))) != CRYPT_OK) return err; in chacha20poly1305_test() 93 if ((err = chacha20poly1305_add_aad(&st1, aad, sizeof(aad))) != CRYPT_OK) return err; in chacha20poly1305_test() 104 if ((err = chacha20poly1305_add_aad(&st1, aad, sizeof(aad))) != CRYPT_OK) return err; in chacha20poly1305_test() 112 if ((err = chacha20poly1305_add_aad(&st2, aad, sizeof(aad))) != CRYPT_OK) return err; in chacha20poly1305_test()
|
A D | chacha20poly1305_memory.c | 26 const unsigned char *aad, unsigned long aadlen, in chacha20poly1305_memory() argument 44 if (aad && aadlen > 0) { in chacha20poly1305_memory() 45 if ((err = chacha20poly1305_add_aad(&st, aad, aadlen)) != CRYPT_OK) { goto LBL_ERR; } in chacha20poly1305_memory()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/ocb3/ |
A D | ocb3_add_aad.c | 45 int ocb3_add_aad(ocb3_state *ocb, const unsigned char *aad, unsigned long aadlen) in ocb3_add_aad() argument 53 LTC_ARGCHK(aad != NULL); in ocb3_add_aad() 58 XMEMCPY(ocb->adata_buffer+ocb->adata_buffer_bytes, aad, l); in ocb3_add_aad() 68 data = (unsigned char *)aad + l; in ocb3_add_aad() 72 data = (unsigned char *)aad; in ocb3_add_aad()
|
A D | ocb3_test.c | 27 unsigned char pt[64], aad[64], ct[64], tag[16]; in ocb3_test() 217 … tests[x].aadlen != 0 ? tests[x].aad : NULL, tests[x].aadlen, in ocb3_test() 231 … tests[x].aadlen != 0 ? tests[x].aad : NULL, tests[x].aadlen, in ocb3_test()
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/ |
A D | chachapoly.c | 170 const unsigned char *aad, in mbedtls_chachapoly_update_aad() argument 174 CHACHAPOLY_VALIDATE_RET( aad_len == 0 || aad != NULL ); in mbedtls_chachapoly_update_aad() 181 return( mbedtls_poly1305_update( &ctx->poly1305_ctx, aad, aad_len ) ); in mbedtls_chachapoly_update_aad() 282 const unsigned char *aad, in chachapoly_crypt_and_tag() argument 294 ret = mbedtls_chachapoly_update_aad( ctx, aad, aad_len ); in chachapoly_crypt_and_tag() 311 const unsigned char *aad, in mbedtls_chachapoly_encrypt_and_tag() argument 320 CHACHAPOLY_VALIDATE_RET( aad_len == 0 || aad != NULL ); in mbedtls_chachapoly_encrypt_and_tag() 325 length, nonce, aad, aad_len, in mbedtls_chachapoly_encrypt_and_tag() 332 const unsigned char *aad, in mbedtls_chachapoly_auth_decrypt() argument 345 CHACHAPOLY_VALIDATE_RET( aad_len == 0 || aad != NULL ); in mbedtls_chachapoly_auth_decrypt() [all …]
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/ |
A D | chachapoly.h | 215 const unsigned char *aad, 305 const unsigned char *aad, 339 const unsigned char *aad,
|
/optee_os-3.20.0/core/include/crypto/ |
A D | internal_aes-gcm.h | 77 const void *aad, size_t aad_len, 83 const void *aad, size_t aad_len,
|
/optee_os-3.20.0/core/drivers/crypto/crypto_api/include/ |
A D | drvcrypt_authenc.h | 41 struct drvcrypt_buf aad; /* Additional Authenticated Data buffer */ member
|
/optee_os-3.20.0/core/crypto/ |
A D | aes-gcm.c | 372 const void *aad, size_t aad_len, in internal_aes_gcm_enc() argument 384 if (aad) { in internal_aes_gcm_enc() 385 res = __gcm_update_aad(&state, aad, aad_len); in internal_aes_gcm_enc() 395 const void *aad, size_t aad_len, in internal_aes_gcm_dec() argument 407 if (aad) { in internal_aes_gcm_dec() 408 res = __gcm_update_aad(&state, aad, aad_len); in internal_aes_gcm_dec()
|
/optee_os-3.20.0/core/drivers/crypto/versal/ |
A D | authenc.c | 148 struct versal_aad aad; member 277 ret = replay_aad(&node->aad); in do_replay() 430 versal_mbox_alloc(dupdate->aad.length, dupdate->aad.data, &p); in do_update_aad() 437 dupdate->aad.length, arg.data[0]); in do_update_aad() 452 node->aad.mem = p; in do_update_aad() 698 free(node->aad.mem.buf); in do_free()
|
/optee_os-3.20.0/core/drivers/crypto/crypto_api/authenc/ |
A D | authenc.c | 132 .aad.data = (uint8_t *)data, in authenc_update_aad() 133 .aad.length = len, in authenc_update_aad()
|
/optee_os-3.20.0/core/drivers/crypto/stm32/ |
A D | authenc.c | 242 return stm32_cryp_update_assodata(&c->cryp, dupdate->aad.data, in stm32_ae_update_aad() 243 dupdate->aad.length); in stm32_ae_update_aad()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/ |
A D | tomcrypt_mac.h | 380 int ocb3_add_aad(ocb3_state *ocb, const unsigned char *aad, unsigned long aadlen); 560 const unsigned char *aad, unsigned long aadlen,
|