Home
last modified time | relevance | path

Searched refs:keySizeId (Results 1 – 20 of 20) sorted by relevance

/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/cc3x_sym/api/
Dmbedtls_aes_ext_dma.c62 keySizeId_t keySizeId; in mbedtls_aes_ext_dma_init() local
89 keySizeId = KEY_SIZE_128_BIT; in mbedtls_aes_ext_dma_init()
92 keySizeId = KEY_SIZE_192_BIT; in mbedtls_aes_ext_dma_init()
95 keySizeId = KEY_SIZE_256_BIT; in mbedtls_aes_ext_dma_init()
103 drvRc = AesExtDmaInit((cryptoDirection_t)encryptDecryptFlag, mode, keySizeId); in mbedtls_aes_ext_dma_init()
115 keySizeId_t keySizeId; in mbedtls_aes_ext_dma_set_key() local
140 keySizeId = KEY_SIZE_128_BIT; in mbedtls_aes_ext_dma_set_key()
143 keySizeId = KEY_SIZE_192_BIT; in mbedtls_aes_ext_dma_set_key()
146 keySizeId = KEY_SIZE_256_BIT; in mbedtls_aes_ext_dma_set_key()
155 drvRc = AesExtDmaSetKey(mode, keyBuffer, keySizeId); in mbedtls_aes_ext_dma_set_key()
Dmbedtls_ccm_internal.c617 aes_ccm_ctx->keySizeId = KEY_SIZE_128_BIT; in mbedtls_ccm_setkey_int()
622 aes_ccm_ctx->keySizeId = KEY_SIZE_192_BIT; in mbedtls_ccm_setkey_int()
627 aes_ccm_ctx->keySizeId = KEY_SIZE_256_BIT; in mbedtls_ccm_setkey_int()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/cc3x_sym/driver/
Daes_driver_ext_dma.c28 keySizeId_t keySizeId) in AesExtDmaInit() argument
103 switch (keySizeId) { in AesExtDmaInit()
108 CC_REG_FLD_SET(HOST_RGF, AES_CONTROL, NK_KEY0, aesCtrl, keySizeId); in AesExtDmaInit()
192 drvError_t AesExtDmaSetKey(aesMode_t mode, uint32_t *keyBuf, keySizeId_t keySizeId) in AesExtDmaSetKey() argument
198 …if ((keySizeId != KEY_SIZE_256_BIT) && (keySizeId != KEY_SIZE_192_BIT) && (keySizeId != KEY_SIZE_1… in AesExtDmaSetKey()
207 if (keySizeId == KEY_SIZE_192_BIT || keySizeId == KEY_SIZE_256_BIT) { in AesExtDmaSetKey()
211 if (keySizeId == KEY_SIZE_256_BIT) { in AesExtDmaSetKey()
Daes_driver_ext_dma.h24 drvError_t AesExtDmaSetKey(aesMode_t mode, uint32_t *keyBuf, keySizeId_t keySizeId);
32 keySizeId_t keySizeId);
Daesccm_driver.c77 switch (pAesCcmCtx->keySizeId) { in InitAesCcm()
81 CC_REG_FLD_SET(HOST_RGF, AES_CONTROL, NK_KEY0, aesControl, pAesCcmCtx->keySizeId); in InitAesCcm()
82 CC_REG_FLD_SET(HOST_RGF, AES_CONTROL, NK_KEY1, aesControl, pAesCcmCtx->keySizeId); in InitAesCcm()
129 if (pAesCcmCtx->keySizeId >= KEY_SIZE_192_BIT) { in LoadAesCcmdKey()
138 if (pAesCcmCtx->keySizeId == KEY_SIZE_256_BIT) { in LoadAesCcmdKey()
Daesgcm_driver.c44 if (pAesGcmCtx->keySizeId > KEY_SIZE_128_BIT) { in loadAesGcmKey()
50 if (pAesGcmCtx->keySizeId > KEY_SIZE_192_BIT) { in loadAesGcmKey()
158 CC_REG_FLD_SET(HOST_RGF, AES_CONTROL, NK_KEY0, auxReg, pAesGcmCtx->keySizeId); in initAesGcm()
212 CC_REG_FLD_SET(HOST_RGF, AES_CONTROL, NK_KEY0, auxReg, pAesGcmCtx->keySizeId); in initAesGcm()
280 CC_REG_FLD_SET(HOST_RGF, AES_CONTROL, NK_KEY0, auxReg, pAesGcmCtx->keySizeId); in initAesGcm()
Daesccm_driver.h42 keySizeId_t keySizeId; member
Daes_driver.h23 keySizeId_t keySizeId; member
Daes_driver.c112 switch (aesCtx->keySizeId) { in InitAes()
117 CC_REG_FLD_SET(HOST_RGF, AES_CONTROL, NK_KEY0, aesCtrl, aesCtx->keySizeId); in InitAes()
148 … if (aesCtx->keySizeId == KEY_SIZE_192_BIT || aesCtx->keySizeId == KEY_SIZE_256_BIT) { in LoadAesKey()
152 if (aesCtx->keySizeId == KEY_SIZE_256_BIT) in LoadAesKey()
Daesgcm_driver.h80 keySizeId_t keySizeId; member
Ddriver_defs.h74 typedef enum keySizeId { enum
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/host/src/cc3x_lib/
Dcc_util_cmac.c122 aesCtxBuf.keySizeId = KEY_SIZE_256_BIT; in UtilCmacDeriveKey()
127 aesCtxBuf.keySizeId = KEY_SIZE_128_BIT; in UtilCmacDeriveKey()
132 aesCtxBuf.keySizeId = KEY_SIZE_128_BIT; in UtilCmacDeriveKey()
144 aesCtxBuf.keySizeId = KEY_SIZE_128_BIT; in UtilCmacDeriveKey()
147 aesCtxBuf.keySizeId = KEY_SIZE_192_BIT; in UtilCmacDeriveKey()
150 aesCtxBuf.keySizeId = KEY_SIZE_256_BIT; in UtilCmacDeriveKey()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/
Dcc3xx_internal_aes.c66 ctx->keySizeId = KEY_SIZE_128_BIT; in aes_setkey()
69 ctx->keySizeId = KEY_SIZE_192_BIT; in aes_setkey()
72 ctx->keySizeId = KEY_SIZE_256_BIT; in aes_setkey()
Dcc3xx_psa_mac.c84 ctx->keySizeId = KEY_SIZE_128_BIT; in cmac_setkey()
87 ctx->keySizeId = KEY_SIZE_192_BIT; in cmac_setkey()
90 ctx->keySizeId = KEY_SIZE_256_BIT; in cmac_setkey()
Dcc3xx_internal_gcm.c67 ctx->keySizeId = KEY_SIZE_128_BIT; in gcm_setkey()
70 ctx->keySizeId = KEY_SIZE_192_BIT; in gcm_setkey()
73 ctx->keySizeId = KEY_SIZE_256_BIT; in gcm_setkey()
Dcc3xx_internal_ccm.c56 ctx->keySizeId = KEY_SIZE_128_BIT; in ccm_setkey()
60 ctx->keySizeId = KEY_SIZE_192_BIT; in ccm_setkey()
63 ctx->keySizeId = KEY_SIZE_256_BIT; in ccm_setkey()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/host/src/cc3x_productionlib/common/
Dprod_crypto_driver.c146 pAesCtx->keySizeId = KEY_SIZE_128_BIT; in CC_PROD_AesInit()
149 pAesCtx->keySizeId = KEY_SIZE_192_BIT; in CC_PROD_AesInit()
152 pAesCtx->keySizeId = KEY_SIZE_256_BIT; in CC_PROD_AesInit()
245 aesCtx.keySizeId = KEY_SIZE_128_BIT; in CC_PROD_KeyDerivation()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/
Daes_alt.c97 aesCtx->keySizeId = KEY_SIZE_128_BIT; in aes_setkey()
100 aesCtx->keySizeId = KEY_SIZE_192_BIT; in aes_setkey()
103 aesCtx->keySizeId = KEY_SIZE_256_BIT; in aes_setkey()
Dcmac_alt.c112 ctx->keySizeId = KEY_SIZE_128_BIT; in cmac_setkey()
115 ctx->keySizeId = KEY_SIZE_192_BIT; in cmac_setkey()
118 ctx->keySizeId = KEY_SIZE_256_BIT; in cmac_setkey()
Dgcm_alt.c92 aes_gcm_ctx->keySizeId = KEY_SIZE_128_BIT; in mbedtls_gcm_setkey()
95 aes_gcm_ctx->keySizeId = KEY_SIZE_192_BIT; in mbedtls_gcm_setkey()
98 aes_gcm_ctx->keySizeId = KEY_SIZE_256_BIT; in mbedtls_gcm_setkey()