Lines Matching refs:ccm_metadata
300 NX_CRYPTO_KEEP UINT _nx_crypto_ccm_encrypt_init(VOID *crypto_metadata, NX_CRYPTO_CCM *ccm_metadata, in _nx_crypto_ccm_encrypt_init() argument
309 UCHAR *A = ccm_metadata -> nx_crypto_ccm_A; in _nx_crypto_ccm_encrypt_init()
318 ccm_metadata -> nx_crypto_ccm_icv_length = icv_len; in _nx_crypto_ccm_encrypt_init()
327 ccm_metadata -> nx_crypto_ccm_X, in _nx_crypto_ccm_encrypt_init()
331 NX_CRYPTO_MEMSET(A, 0, sizeof(ccm_metadata -> nx_crypto_ccm_A)); in _nx_crypto_ccm_encrypt_init()
386 …EEP UINT _nx_crypto_ccm_encrypt_update(UINT op, VOID *crypto_metadata, NX_CRYPTO_CCM *ccm_metadata, in _nx_crypto_ccm_encrypt_update() argument
390 UCHAR *A = ccm_metadata -> nx_crypto_ccm_A; in _nx_crypto_ccm_encrypt_update()
404 if (ccm_metadata -> nx_crypto_ccm_icv_length > 0) in _nx_crypto_ccm_encrypt_update()
409 ccm_metadata -> nx_crypto_ccm_X, length, in _nx_crypto_ccm_encrypt_update()
410 ccm_metadata -> nx_crypto_ccm_X, block_size); in _nx_crypto_ccm_encrypt_update()
436 if (ccm_metadata -> nx_crypto_ccm_icv_length > 0) in _nx_crypto_ccm_encrypt_update()
441 ccm_metadata -> nx_crypto_ccm_X, length, in _nx_crypto_ccm_encrypt_update()
442 ccm_metadata -> nx_crypto_ccm_X, block_size); in _nx_crypto_ccm_encrypt_update()
497 …YPTO_KEEP UINT _nx_crypto_ccm_encrypt_calculate(VOID *crypto_metadata, NX_CRYPTO_CCM *ccm_metadata, in _nx_crypto_ccm_encrypt_calculate() argument
501 UCHAR *A = ccm_metadata -> nx_crypto_ccm_A; in _nx_crypto_ccm_encrypt_calculate()
511 if (ccm_metadata -> nx_crypto_ccm_icv_length > 0) in _nx_crypto_ccm_encrypt_calculate()
515 …NX_CRYPTO_MEMCPY(icv, ccm_metadata -> nx_crypto_ccm_X, ccm_metadata -> nx_crypto_ccm_icv_length); … in _nx_crypto_ccm_encrypt_calculate()
522 for (i = 0; i < ccm_metadata -> nx_crypto_ccm_icv_length; i++) in _nx_crypto_ccm_encrypt_calculate()
529 NX_CRYPTO_MEMSET(ccm_metadata, 0, sizeof(NX_CRYPTO_CCM)); in _nx_crypto_ccm_encrypt_calculate()
579 …YPTO_KEEP UINT _nx_crypto_ccm_decrypt_calculate(VOID *crypto_metadata, NX_CRYPTO_CCM *ccm_metadata, in _nx_crypto_ccm_decrypt_calculate() argument
593 if (ccm_metadata -> nx_crypto_ccm_icv_length > 0) in _nx_crypto_ccm_decrypt_calculate()
596 …NX_CRYPTO_MEMCPY(temp, ccm_metadata -> nx_crypto_ccm_A, block_size); /* Use case of memcpy is veri… in _nx_crypto_ccm_decrypt_calculate()
601 for (i = 0; i < ccm_metadata -> nx_crypto_ccm_icv_length; i++) in _nx_crypto_ccm_decrypt_calculate()
607 …if (NX_CRYPTO_MEMCMP(temp, ccm_metadata -> nx_crypto_ccm_X, ccm_metadata -> nx_crypto_ccm_icv_leng… in _nx_crypto_ccm_decrypt_calculate()
616 NX_CRYPTO_MEMSET(ccm_metadata, 0, sizeof(NX_CRYPTO_CCM)); in _nx_crypto_ccm_decrypt_calculate()