Home
last modified time | relevance | path

Searched refs:pAesGcmCtx (Results 1 – 3 of 3) sorted by relevance

/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/cc3x_sym/driver/
Daesgcm_driver.c26 void loadAesGcmGhashSubkey(AesGcmContext_t *pAesGcmCtx) in loadAesGcmGhashSubkey() argument
29 CC_HAL_WRITE_REGISTER(CC_REG_OFFSET(HOST_RGF, GHASH_SUBKEY_0_0), pAesGcmCtx->H[0]); in loadAesGcmGhashSubkey()
30 CC_HAL_WRITE_REGISTER(CC_REG_OFFSET(HOST_RGF, GHASH_SUBKEY_0_1), pAesGcmCtx->H[1]); in loadAesGcmGhashSubkey()
31 CC_HAL_WRITE_REGISTER(CC_REG_OFFSET(HOST_RGF, GHASH_SUBKEY_0_2), pAesGcmCtx->H[2]); in loadAesGcmGhashSubkey()
32 CC_HAL_WRITE_REGISTER(CC_REG_OFFSET(HOST_RGF, GHASH_SUBKEY_0_3), pAesGcmCtx->H[3]); in loadAesGcmGhashSubkey()
36 void loadAesGcmKey(AesGcmContext_t *pAesGcmCtx) in loadAesGcmKey() argument
39 CC_HAL_WRITE_REGISTER(CC_REG_OFFSET(HOST_RGF, AES_KEY_0_0) ,pAesGcmCtx->keyBuf[0]); in loadAesGcmKey()
40 CC_HAL_WRITE_REGISTER(CC_REG_OFFSET(HOST_RGF, AES_KEY_0_1) ,pAesGcmCtx->keyBuf[1]); in loadAesGcmKey()
41 CC_HAL_WRITE_REGISTER(CC_REG_OFFSET(HOST_RGF, AES_KEY_0_2) ,pAesGcmCtx->keyBuf[2]); in loadAesGcmKey()
42 CC_HAL_WRITE_REGISTER(CC_REG_OFFSET(HOST_RGF, AES_KEY_0_3) ,pAesGcmCtx->keyBuf[3]); in loadAesGcmKey()
[all …]
Daesgcm_driver.h112 drvError_t ProcessAesGcm(AesGcmContext_t *pAesGcmCtx, CCBuffInfo_t *pInputBuffInfo, CCBuffInfo_t *p…
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/
Dgcm_alt.c120 AesGcmContext_t *pAesGcmCtx = NULL; in gcm_calc_h() local
126 pAesGcmCtx = (AesGcmContext_t *)ctx; in gcm_calc_h()
129 pAesGcmCtx->processMode = DRV_AESGCM_Process_CalcH; in gcm_calc_h()
132 …rc = SetDataBuffersInfo((uint8_t*)(pAesGcmCtx->tempBuf), CC_AESGCM_GHASH_DIGEST_SIZE_BYTES, &inBuf… in gcm_calc_h()
133 (uint8_t*)(pAesGcmCtx->H), AES_128_BIT_KEY_SIZE, &outBuffInfo); in gcm_calc_h()
140 rc = ProcessAesGcm(pAesGcmCtx, &inBuffInfo, &outBuffInfo, CC_AES_BLOCK_SIZE_IN_BYTES); in gcm_calc_h()
161 AesGcmContext_t *pAesGcmCtx = NULL; in gcm_init() local
220 pAesGcmCtx = (AesGcmContext_t *)ctx; in gcm_init()
223 pAesGcmCtx->dir = MBEDTLS_2_DRIVER_DIRECTION(encryptDecryptFlag); in gcm_init()
224 pAesGcmCtx->dataSize = dataSize; in gcm_init()
[all …]