Home
last modified time | relevance | path

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

/ohos5.0/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/alg_module_test/src/
H A Dopenssl_aes_helper.c143 if (EVP_EncryptInit_ex(ctx, ciper, NULL, NULL, NULL) != 1) { in AesEncrypt()
148 if (EVP_EncryptInit_ex(ctx, NULL, NULL, randomKey->data, iv->blob.data) != 1) { in AesEncrypt()
251 if (EVP_EncryptInit_ex(ctx, ciper, NULL, NULL, NULL) != 1) { in AesGcmEncrypt()
261 if (EVP_EncryptInit_ex(ctx, NULL, NULL, randomKey->data, iv->blob.data) != 1) { in AesGcmEncrypt()
/ohos5.0/foundation/communication/wifi/wifi/base/security_utils/src/
H A Dwifi_openssl_utils.cpp84 if (EVP_EncryptInit_ex(ctx, cipher, nullptr, nullptr, nullptr) != 1) { in OpensslAesEncrypt()
92 if (EVP_EncryptInit_ex(ctx, nullptr, nullptr, info->key, info->iv) != 1) { in OpensslAesEncrypt()
/ohos5.0/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/
H A Dhks_openssl_aes.c63 …ret = EVP_EncryptInit_ex(ctx, NULL, NULL, key->data, (cipherParam == NULL) ? NULL : cipherParam->i… in OpensslBlockCipherCryptInitParams()
106 ret = EVP_EncryptInit_ex(ctx, cipher, NULL, NULL, NULL); in ENABLE_CFI()
361 … ret = EVP_EncryptInit_ex(*ctx, GetAeadCipherType(key->size, usageSpec->mode), NULL, NULL, NULL); in OpensslAesAeadInit()
379 ret = EVP_EncryptInit_ex(*ctx, NULL, NULL, key->data, aeadParam->nonce.data); in OpensslAesAeadInit()
477 ret = EVP_EncryptInit_ex(ctx, NULL, NULL, key->data, aeadParam->nonce.data); in OpensslAesAeadCryptSetParam()
503 … ret = EVP_EncryptInit_ex(ctx, GetAeadCipherType(key->size, usageSpec->mode), NULL, NULL, NULL); in OpensslAesAeadCryptInit()
893 ret = EVP_EncryptInit_ex(*ctx, cipher, NULL, NULL, NULL); in OpensslAesCipherInit()
904 …ret = EVP_EncryptInit_ex(*ctx, NULL, NULL, key->data, (cipherParam == NULL) ? NULL : cipherParam->… in OpensslAesCipherInit()
/ohos5.0/drivers/peripheral/user_auth/hdi_service/adaptor/src/
H A Dadaptor_algorithm.c311 …if (EVP_EncryptInit_ex(ctx, EVP_aes_256_gcm(), NULL, (unsigned char *)aesGcmParam->key->buf, NULL)… in SetAesEncryptParam()
320 if (EVP_EncryptInit_ex(ctx, NULL, NULL, NULL, aesGcmParam->iv->buf) != OPENSSL_SUCCESS) { in SetAesEncryptParam()
393 …if (EVP_EncryptInit_ex(ctx, EVP_aes_256_gcm(), NULL, (unsigned char *)aesGcmParam->key->buf, NULL)… in SetAesDecryptParam()
/ohos5.0/foundation/communication/dsoftbus/adapter/common/openssl/
H A Dsoftbus_adapter_crypto.c76 ret = EVP_EncryptInit_ex(*ctx, cipher, NULL, NULL, NULL); in OpensslEvpInit()
140 ret = EVP_EncryptInit_ex(ctx, NULL, NULL, cipherkey->key, cipherkey->iv); in SslAesGcmEncrypt()
496 if (EVP_EncryptInit_ex(ctx, cipher, NULL, key->key, key->iv) != 1) { in SoftBusEncryptDataByCtr()
H A Dsoftbus_aes_encrypt.c295 if (EVP_EncryptInit_ex(*ctx, cipher, NULL, NULL, NULL) != 1) { in GcmOpensslEvpInit()
329 if (EVP_EncryptInit_ex(ctx, NULL, NULL, cipherKey->key, cipherKey->iv) != 1) { in OpensslAesGcmEncrypt()
/ohos5.0/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/src/
H A Ddlp_crypt.cpp140 ret = EVP_EncryptInit_ex(*ctx, cipher, nullptr, nullptr, nullptr); in OpensslAesCipherInit()
151 ret = EVP_EncryptInit_ex( in OpensslAesCipherInit()
201 ret = EVP_EncryptInit_ex( in OpensslAesCipherCryptInitParams()
239 ret = EVP_EncryptInit_ex(ctx, cipher, nullptr, nullptr, nullptr); in OpensslAesCipherCryptInit()
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/
H A Dopenssl_crypto.cpp91 if (EVP_EncryptInit_ex(ctx.get(), EVP_aes_256_gcm(), NULL, in AESEncrypt()
/ohos5.0/drivers/peripheral/pin_auth/hdi_service/adaptor/src/
H A Dadaptor_algorithm.c424 … if (EVP_EncryptInit_ex(ctx, EVP_aes_256_gcm(), NULL, param->key->buf, NULL) != OPENSSL_SUCCESS) { in SetAesEncryptParam()
432 if (EVP_EncryptInit_ex(ctx, NULL, NULL, NULL, param->iv->buf) != OPENSSL_SUCCESS) { in SetAesEncryptParam()
/ohos5.0/base/notification/distributed_notification_service/services/ans/src/common/
H A Daes_gcm_helper.cpp190 if (!EVP_EncryptInit_ex(ctx, EVP_aes_256_gcm(), nullptr, in EncryptAesGcm()
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_util/core/
H A Dnstackx_openssl.c85 if (EVP_EncryptInit_ex(cryptPara->ctx, cipher, NULL, cryptPara->key, cryptPara->iv) == 0) { in InitEncryptCtx()
/ohos5.0/base/security/dlp_permission_service/frameworks/test/mock/
H A Dopenssl_mock.cpp162 int EVP_EncryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl, in EVP_EncryptInit_ex() function