Searched refs:ctrStateBuf (Results 1 – 4 of 4) sorted by relevance
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/ |
D | cc3xx_internal_ccm.c | 135 uint8_t ctrStateBuf[CC_AES_BLOCK_SIZE_IN_BYTES] = {0}; in ccm_init() local 208 CC_PalMemSetZero(context->ctrStateBuf, sizeof(context->ctrStateBuf)); in ccm_init() 248 ctrStateBuf[0] = qFieldSize - 1; in ccm_init() 250 CC_PalMemCopy(ctrStateBuf + 1, pNonce, sizeOfN); in ccm_init() 252 ctrStateBuf[15] = 1; /* Note: value i = 0 reserved for encoding MAC value */ in ccm_init() 253 CC_PalMemCopy((uint8_t *)context->ctrStateBuf, ctrStateBuf, in ccm_init() 499 CC_PalMemSetZero((uint8_t *)context->ctrStateBuf + in ccm_finish() 758 uint8_t ctrStateBuf[CC_AES_BLOCK_SIZE_IN_BYTES] = {0}; in cc3xx_ccm_set_nonce() local 838 ctrStateBuf[0] = qFieldSize - 1; in cc3xx_ccm_set_nonce() 839 CC_PalMemCopy(ctrStateBuf + 1, pNonce, sizeOfN); in cc3xx_ccm_set_nonce() [all …]
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/cc3x_sym/driver/ |
D | aesccm_driver.c | 170 CC_HAL_WRITE_REGISTER(CC_REG_OFFSET(HOST_RGF, AES_CTR_0_0) ,pAesCcmCtx->ctrStateBuf[0]); in LoadAesCcmCtrState() 171 CC_HAL_WRITE_REGISTER(CC_REG_OFFSET(HOST_RGF, AES_CTR_0_1) ,pAesCcmCtx->ctrStateBuf[1]); in LoadAesCcmCtrState() 172 CC_HAL_WRITE_REGISTER(CC_REG_OFFSET(HOST_RGF, AES_CTR_0_2) ,pAesCcmCtx->ctrStateBuf[2]); in LoadAesCcmCtrState() 173 CC_HAL_WRITE_REGISTER(CC_REG_OFFSET(HOST_RGF, AES_CTR_0_3) ,pAesCcmCtx->ctrStateBuf[3]); in LoadAesCcmCtrState() 200 pAesCcmCtx->ctrStateBuf[0] = CC_HAL_READ_REGISTER(CC_REG_OFFSET(HOST_RGF, AES_CTR_0_0)); in StoreAesCcmCtrState() 201 pAesCcmCtx->ctrStateBuf[1] = CC_HAL_READ_REGISTER(CC_REG_OFFSET(HOST_RGF, AES_CTR_0_1)); in StoreAesCcmCtrState() 202 pAesCcmCtx->ctrStateBuf[2] = CC_HAL_READ_REGISTER(CC_REG_OFFSET(HOST_RGF, AES_CTR_0_2)); in StoreAesCcmCtrState() 203 pAesCcmCtx->ctrStateBuf[3] = CC_HAL_READ_REGISTER(CC_REG_OFFSET(HOST_RGF, AES_CTR_0_3)); in StoreAesCcmCtrState()
|
D | aesccm_driver.h | 36 uint32_t ctrStateBuf[AES_IV_SIZE_WORDS]; member
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/cc3x_sym/api/ |
D | mbedtls_ccm_internal.c | 42 uint8_t ctrStateBuf[CC_AES_BLOCK_SIZE_IN_BYTES] = { 0 }; in ccm_init() local 119 mbedtls_zeroize_internal(pAesCcmCtx->ctrStateBuf, sizeof(pAesCcmCtx->ctrStateBuf)); in ccm_init() 160 ctrStateBuf[0] = qFieldSize - 1; in ccm_init() 162 CC_PalMemCopy(ctrStateBuf + 1, pNonce, sizeOfN); in ccm_init() 164 ctrStateBuf[15] = 1; /* Note: value i = 0 reserved for encoding MAC value */ in ccm_init() 165 CC_PalMemCopy((uint8_t * )pAesCcmCtx->ctrStateBuf, ctrStateBuf, CC_AES_BLOCK_SIZE_IN_BYTES); in ccm_init() 431 …mbedtls_zeroize_internal((uint8_t*) pAesCcmCtx->ctrStateBuf + CC_AES_BLOCK_SIZE_IN_BYTES - qFieldS… in ccm_finish()
|