Home
last modified time | relevance | path

Searched refs:chachaCtx (Results 1 – 4 of 4) sorted by relevance

/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/cc3x_sym/driver/
Dchacha_driver.c32 static drvError_t InitChacha(ChachaContext_t *chachaCtx) in InitChacha() argument
37 if ( chachaCtx == NULL ) { in InitChacha()
42 if ( (chachaCtx->inputDataAddrType != SRAM_ADDR) && in InitChacha()
43 (chachaCtx->inputDataAddrType != DLLI_ADDR) ) { in InitChacha()
48 if ( (chachaCtx->outputDataAddrType != SRAM_ADDR) && in InitChacha()
49 (chachaCtx->outputDataAddrType != DLLI_ADDR) ) { in InitChacha()
74 static drvError_t LoadChachaState(ChachaContext_t *chachaCtx) in LoadChachaState() argument
77 if (chachaCtx == NULL) { in LoadChachaState()
82 if (chachaCtx->nonceSize == NONCE_SIZE_64) { in LoadChachaState()
83 … CC_HAL_WRITE_REGISTER(CC_REG_OFFSET(HOST_RGF, CHACHA_BLOCK_CNT_MSB), chachaCtx->blockCounterMsb); in LoadChachaState()
[all …]
Dchacha_driver.h60 drvError_t ProcessChacha(ChachaContext_t *chachaCtx, CCBuffInfo_t *pInputBuffInfo, CCBuffInfo_t *pO…
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/
Dchacha20_alt.c32 ChachaContext_t *chachaCtx = NULL; in mbedtls_chacha20_init() local
45 chachaCtx = (ChachaContext_t *)ctx; in mbedtls_chacha20_init()
47 chachaCtx->inputDataAddrType = DLLI_ADDR; in mbedtls_chacha20_init()
48 chachaCtx->outputDataAddrType = DLLI_ADDR; in mbedtls_chacha20_init()
63 ChachaContext_t *chachaCtx = NULL; in mbedtls_chacha20_setkey() local
69 chachaCtx = (ChachaContext_t *)ctx; in mbedtls_chacha20_setkey()
70 CC_PalMemCopy(chachaCtx->keyBuf, key, MBEDTLS_CHACHA_KEY_SIZE_BYTES); in mbedtls_chacha20_setkey()
79 ChachaContext_t *chachaCtx = NULL; in mbedtls_chacha20_starts() local
87 chachaCtx = (ChachaContext_t *)ctx; in mbedtls_chacha20_starts()
89 chachaCtx->nonceSize = (chachaNonceSize_t)MBEDTLS_CHACHA_NONCE_SIZE_12BYTE_TYPE; in mbedtls_chacha20_starts()
[all …]
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/cc3x_sym/api/
Dmbedtls_cc_chacha.c44 ChachaContext_t *chachaCtx = NULL; in ChachaBlock() local
77 chachaCtx = (ChachaContext_t *)pContextID; in ChachaBlock()
87 drvRc = ProcessChacha(chachaCtx, &inBuffInfo, &outBuffInfo, dataInSize); in ChachaBlock()
99 ChachaContext_t *chachaCtx = NULL; in mbedtls_chacha_init() local
147 chachaCtx = (ChachaContext_t *)pContextID; in mbedtls_chacha_init()
148 chachaCtx->dir = (enum cryptoDirection)EncryptDecryptFlag; in mbedtls_chacha_init()
149 chachaCtx->nonceSize = (chachaNonceSize_t)nonceSize; in mbedtls_chacha_init()
150 chachaCtx->inputDataAddrType = DLLI_ADDR; in mbedtls_chacha_init()
151 chachaCtx->outputDataAddrType = DLLI_ADDR; in mbedtls_chacha_init()
154 CC_PalMemCopy(chachaCtx->keyBuf, pKey, keySizeBytes); in mbedtls_chacha_init()
[all …]