Home
last modified time | relevance | path

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

/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/utils/src/common/
Dcommon_crypto_sym.c241 EVP_CIPHER_CTX ccm_ctx; in CC_CommonAesCcmEncrypt() local
259 EVP_CIPHER_CTX_init(&ccm_ctx); in CC_CommonAesCcmEncrypt()
262 rc = EVP_EncryptInit_ex(&ccm_ctx, EVP_aes_128_ccm(), NULL, NULL, NULL); in CC_CommonAesCcmEncrypt()
269 rc = EVP_CIPHER_CTX_ctrl(&ccm_ctx, EVP_CTRL_CCM_SET_IVLEN, nonceLen, NULL); in CC_CommonAesCcmEncrypt()
276 rc = EVP_CIPHER_CTX_ctrl(&ccm_ctx, EVP_CTRL_CCM_SET_TAG, tagBuffLen, NULL); in CC_CommonAesCcmEncrypt()
285 rc = EVP_EncryptInit_ex(&ccm_ctx, NULL, NULL, keyBuf, nonce); in CC_CommonAesCcmEncrypt()
293 rc = EVP_EncryptUpdate(&ccm_ctx, NULL, &outlen, NULL, plainTxtLen); in CC_CommonAesCcmEncrypt()
301 rc = EVP_EncryptUpdate(&ccm_ctx, NULL, &outlen, aData, aDatalen); in CC_CommonAesCcmEncrypt()
311 rc = EVP_EncryptUpdate(&ccm_ctx, enBuff, &outlen, plainTxt, plainTxtLen); in CC_CommonAesCcmEncrypt()
324 rc = EVP_EncryptFinal_ex(&ccm_ctx, &enBuff[outlen], &outlen); in CC_CommonAesCcmEncrypt()
[all …]