Searched refs:aesCtx (Results 1 – 5 of 5) sorted by relevance
/base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/src/ |
D | hks_mbedtls_aes.c | 185 struct HksMbedtlsAesCtx *aesCtx = (struct HksMbedtlsAesCtx *)cryptoCtx; in AesCbcNoPaddingCryptUpdate() local 186 HKS_IF_NULL_RETURN(aesCtx, HKS_ERROR_NULL_POINTER) in AesCbcNoPaddingCryptUpdate() 188 mbedtls_aes_context *cbcNoPaddingCtx = (mbedtls_aes_context *)aesCtx->append; in AesCbcNoPaddingCryptUpdate() 202 …if (memcpy_s(tmpIv, HKS_AES_CBC_NOPADDING_IV_SIZE, aesCtx->iv, HKS_AES_CBC_NOPADDING_IV_SIZE) != E… in AesCbcNoPaddingCryptUpdate() 222 … (void)memcpy_s(aesCtx->iv, HKS_AES_CBC_NOPADDING_IV_SIZE, tmpIv, HKS_AES_CBC_NOPADDING_IV_SIZE); in AesCbcNoPaddingCryptUpdate() 231 struct HksMbedtlsAesCtx *aesCtx = (struct HksMbedtlsAesCtx *)*cryptoCtx; in AesCbcNoPaddingCryptFinal() local 232 mbedtls_aes_context *cbcNoPaddingCtx = (mbedtls_aes_context *)aesCtx->append; in AesCbcNoPaddingCryptFinal() 250 …if (memcpy_s(tmpIv, HKS_AES_CBC_NOPADDING_IV_SIZE, aesCtx->iv, HKS_AES_CBC_NOPADDING_IV_SIZE) != E… in AesCbcNoPaddingCryptFinal() 272 HKS_FREE_PTR(aesCtx->append); in AesCbcNoPaddingCryptFinal() 399 struct HksMbedtlsAesCtx *aesCtx = (struct HksMbedtlsAesCtx *)cryptoCtx; in AesCbcPkcs7CryptUpdate() local [all …]
|
/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/src/ |
D | dlp_crypt.cpp | 268 struct DlpOpensslAesCtx* aesCtx = static_cast<struct DlpOpensslAesCtx*>(cryptoCtx); in OpensslAesCipherEncryptUpdate() local 269 EVP_CIPHER_CTX* ctx = reinterpret_cast<EVP_CIPHER_CTX*>(aesCtx->append); in OpensslAesCipherEncryptUpdate() 287 struct DlpOpensslAesCtx* aesCtx = (struct DlpOpensslAesCtx*)*cryptoCtx; in OpensslAesCipherEncryptFinalThree() local 288 EVP_CIPHER_CTX* ctx = reinterpret_cast<EVP_CIPHER_CTX*>(aesCtx->append); in OpensslAesCipherEncryptFinalThree() 317 aesCtx->append = nullptr; in OpensslAesCipherEncryptFinalThree() 325 struct DlpOpensslAesCtx* aesCtx = static_cast<struct DlpOpensslAesCtx*>(cryptoCtx); in OpensslAesCipherDecryptUpdate() local 326 EVP_CIPHER_CTX* ctx = reinterpret_cast<EVP_CIPHER_CTX*>(aesCtx->append); in OpensslAesCipherDecryptUpdate() 345 struct DlpOpensslAesCtx* aesCtx = (struct DlpOpensslAesCtx*)*cryptoCtx; in OpensslAesCipherDecryptFinalThree() local 346 EVP_CIPHER_CTX* ctx = reinterpret_cast<EVP_CIPHER_CTX*>(aesCtx->append); in OpensslAesCipherDecryptFinalThree() 373 aesCtx->append = nullptr; in OpensslAesCipherDecryptFinalThree()
|
/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/ |
D | hks_openssl_aes.c | 532 struct HksOpensslBlockCipherCtx *aesCtx = (struct HksOpensslBlockCipherCtx *)cryptoCtx; in OpensslAesAeadEnryptUpdate() local 533 EVP_CIPHER_CTX *ctx = (EVP_CIPHER_CTX *)aesCtx->append; in OpensslAesAeadEnryptUpdate() 549 struct HksOpensslBlockCipherCtx *aesCtx = (struct HksOpensslBlockCipherCtx *)cryptoCtx; in OpensslAesAeadDecryptUpdate() local 550 EVP_CIPHER_CTX *ctx = (EVP_CIPHER_CTX *)aesCtx->append; in OpensslAesAeadDecryptUpdate() 566 struct HksOpensslBlockCipherCtx *aesCtx = (struct HksOpensslBlockCipherCtx *)*cryptoCtx; in OpensslAesAeadEncryptFinalGCM() local 567 EVP_CIPHER_CTX *ctx = (EVP_CIPHER_CTX *)aesCtx->append; in OpensslAesAeadEncryptFinalGCM() 603 aesCtx->append = NULL; in OpensslAesAeadEncryptFinalGCM() 612 struct HksOpensslBlockCipherCtx *aesCtx = (struct HksOpensslBlockCipherCtx *)*cryptoCtx; in OpensslAesAeadDecryptFinalGCM() local 613 EVP_CIPHER_CTX *ctx = (EVP_CIPHER_CTX *)aesCtx->append; in OpensslAesAeadDecryptFinalGCM() 616 HksFree(aesCtx); in OpensslAesAeadDecryptFinalGCM() [all …]
|
/base/security/huks/frameworks/crypto_lite/cipher/src/ |
D | cipher_aes.c | 277 static int32_t DoAesCbcEncrypt(mbedtls_aes_context *aesCtx, AesCryptContext *ctx) in DoAesCbcEncrypt() argument 281 ret = mbedtls_aes_setkey_enc(aesCtx, (const unsigned char *)ctx->data.key, AES_BYTE_SIZE); in DoAesCbcEncrypt() 283 ret = mbedtls_aes_setkey_dec(aesCtx, (const unsigned char *)ctx->data.key, AES_BYTE_SIZE); in DoAesCbcEncrypt() 290 ret = mbedtls_aes_crypt_cbc(aesCtx, ctx->data.action, ctx->data.textLen, in DoAesCbcEncrypt()
|
/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/test/ |
D | dlp_crypt_test.cpp | 877 struct DlpOpensslAesCtx* aesCtx = static_cast<struct DlpOpensslAesCtx*>(ctx); variable 878 void *backup = aesCtx->append; 879 aesCtx->append = nullptr; 881 aesCtx->append = backup; 891 aesCtx->mode = 1000; 893 aesCtx->mode = DLP_MODE_CTR;
|