Home
last modified time | relevance | path

Searched refs:ctrCtx (Results 1 – 2 of 2) sorted by relevance

/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/utils/src/cc3x_boot_cert/cert_lib/
Dmain.c127 EVP_CIPHER_CTX ctrCtx; in SBU_AES_CTR_EncryptFile() local
183 EVP_CIPHER_CTX_init(&ctrCtx); in SBU_AES_CTR_EncryptFile()
184 rc = EVP_EncryptInit(&ctrCtx, EVP_aes_128_ctr(), m_key, m_iv); in SBU_AES_CTR_EncryptFile()
213 rc = EVP_EncryptUpdate(&ctrCtx, encryptedBuff, &prevBuffLen, origBuff, actualRead); in SBU_AES_CTR_EncryptFile()
222 … rc = EVP_EncryptFinal_ex(&ctrCtx, encryptedBuff+encryptedBuffSize, &prevBuffLen); in SBU_AES_CTR_EncryptFile()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/utils/src/cc3x_boot_cert/x509cert_lib/
Dmain.c290 EVP_CIPHER_CTX ctrCtx; in SBU_AES_CTR_EncryptFile() local
346 EVP_CIPHER_CTX_init(&ctrCtx); in SBU_AES_CTR_EncryptFile()
347 rc = EVP_EncryptInit(&ctrCtx, EVP_aes_128_ctr(), m_key, m_iv); in SBU_AES_CTR_EncryptFile()
377 rc = EVP_EncryptUpdate(&ctrCtx, encryptedBuff, &prevBuffLen, origBuff, actualRead); in SBU_AES_CTR_EncryptFile()
386 … rc = EVP_EncryptFinal_ex(&ctrCtx, encryptedBuff+encryptedBuffSize, &prevBuffLen); in SBU_AES_CTR_EncryptFile()