Home
last modified time | relevance | path

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

/ohos5.0/base/security/dlp_permission_service/frameworks/test/mock/
H A Dopenssl_mock.cpp34 typedef EVP_CIPHER_CTX *(*EvpCipherCtxNew)(void);
39 typedef void (*EvpCipherCtxFree)(EVP_CIPHER_CTX *c);
40 typedef int (*EvpCipherCtxSetPadding)(EVP_CIPHER_CTX *c, int pad);
42 typedef int (*EvpEncryptFinalEx)(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl);
149 EVP_CIPHER_CTX *EVP_CIPHER_CTX_new(void) in EVP_CIPHER_CTX_new()
162 int EVP_EncryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl, in EVP_EncryptInit_ex()
176 int EVP_DecryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl, in EVP_DecryptInit_ex()
190 void EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *c) in EVP_CIPHER_CTX_free()
203 int EVP_CIPHER_CTX_set_padding(EVP_CIPHER_CTX *c, int pad) in EVP_CIPHER_CTX_set_padding()
231 int EVP_EncryptFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) in EVP_EncryptFinal_ex()
[all …]
/ohos5.0/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/
H A Dhks_openssl_aes.c144 EVP_CIPHER_CTX *ctx = (EVP_CIPHER_CTX *)blockCipherCtx->append; in OpensslBlockCipherEncryptUpdate()
162 EVP_CIPHER_CTX *ctx = (EVP_CIPHER_CTX *)blockCipherCtx->append; in OpensslBlockCipherHandleFinalThree()
213 EVP_CIPHER_CTX *ctx = (EVP_CIPHER_CTX *)blockCipherCtx->append; in OpensslBlockCipherDecryptUpdate()
553 EVP_CIPHER_CTX *ctx = (EVP_CIPHER_CTX *)aesCtx->append; in OpensslAesAeadEnryptUpdate()
570 EVP_CIPHER_CTX *ctx = (EVP_CIPHER_CTX *)aesCtx->append; in OpensslAesAeadDecryptUpdate()
587 EVP_CIPHER_CTX *ctx = (EVP_CIPHER_CTX *)aesCtx->append; in OpensslAesAeadEncryptFinalGCM()
633 EVP_CIPHER_CTX *ctx = (EVP_CIPHER_CTX *)aesCtx->append; in OpensslAesAeadDecryptFinalGCM()
775 EVP_CIPHER_CTX *ctx = (EVP_CIPHER_CTX *)aesCtx->append; in OpensslAesAeadCipherUpdate()
817 EVP_CIPHER_CTX *ctx = (EVP_CIPHER_CTX *)aesCtx->append; in OpensslAesAeadCipherFinal()
1197 EVP_CIPHER_CTX *ctx = NULL; in HksOpensslAesEncrypt()
[all …]
H A Dhks_openssl_sm4.c270 if ((EVP_CIPHER_CTX *)opensslSm4Ctx->append != NULL) { in HksOpensslSm4HalFreeCtx()
271 EVP_CIPHER_CTX_free((EVP_CIPHER_CTX *)opensslSm4Ctx->append); in HksOpensslSm4HalFreeCtx()
287 EVP_CIPHER_CTX *ctx = NULL; in HksOpensslSm4Encrypt()
315 EVP_CIPHER_CTX *ctx = NULL; in HksOpensslSm4Decrypt()
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_util/interface/
H A Dnstackx_openssl.h48 typedef void EVP_CIPHER_CTX; typedef
62 EVP_CIPHER_CTX *ctx;
71 NSTACKX_EXPORT EVP_CIPHER_CTX *CreateCryptCtx(void);
72 NSTACKX_EXPORT void ClearCryptCtx(EVP_CIPHER_CTX *ctx);
/ohos5.0/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/src/
H A Ddlp_crypt.cpp174 EVP_CIPHER_CTX* ctx, const struct DlpBlob* message, struct DlpBlob* cipherText) in OpensslAesCipherEncryptFinal()
196 static int32_t OpensslAesCipherCryptInitParams(const struct DlpBlob* key, EVP_CIPHER_CTX* ctx, in OpensslAesCipherCryptInitParams()
225 EVP_CIPHER_CTX* ctx = EVP_CIPHER_CTX_new(); in OpensslAesCipherCryptInit()
274 EVP_CIPHER_CTX* ctx = reinterpret_cast<EVP_CIPHER_CTX*>(aesCtx->append); in OpensslAesCipherEncryptUpdate()
293 EVP_CIPHER_CTX* ctx = reinterpret_cast<EVP_CIPHER_CTX*>(aesCtx->append); in OpensslAesCipherEncryptFinalThree()
331 EVP_CIPHER_CTX* ctx = reinterpret_cast<EVP_CIPHER_CTX*>(aesCtx->append); in OpensslAesCipherDecryptUpdate()
351 EVP_CIPHER_CTX* ctx = reinterpret_cast<EVP_CIPHER_CTX*>(aesCtx->append); in OpensslAesCipherDecryptFinalThree()
384 EVP_CIPHER_CTX* ctx, const struct DlpBlob* message, struct DlpBlob* plainText) in OpensslAesCipherDecryptFinal()
621 if (reinterpret_cast<EVP_CIPHER_CTX*>(opensslAesCtx->append) != nullptr) { in DlpOpensslAesHalFreeCtx()
669 EVP_CIPHER_CTX* ctx = nullptr; in DlpOpensslAesEncrypt()
[all …]
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_util/core/
H A Dnstackx_openssl.c37 EVP_CIPHER_CTX *CreateCryptCtx() in CreateCryptCtx()
40 EVP_CIPHER_CTX *ctx = NULL; in CreateCryptCtx()
45 void ClearCryptCtx(EVP_CIPHER_CTX *ctx) in ClearCryptCtx()
247 EVP_CIPHER_CTX *CreateCryptCtx(void) in CreateCryptCtx()
250 EVP_CIPHER_CTX *ctx = NULL; in CreateCryptCtx()
254 void ClearCryptCtx(EVP_CIPHER_CTX *ctx) in ClearCryptCtx()
/ohos5.0/foundation/communication/dsoftbus/adapter/common/openssl/
H A Dsoftbus_adapter_crypto.c62 static int32_t OpensslEvpInit(EVP_CIPHER_CTX **ctx, const AesGcmCipherKey *cipherkey, bool mode) in OpensslEvpInit()
99 static int32_t PackIvAndTag(EVP_CIPHER_CTX *ctx, const AesGcmCipherKey *cipherkey, uint32_t dataLen, in PackIvAndTag()
134 EVP_CIPHER_CTX *ctx = NULL; in SslAesGcmEncrypt()
180 EVP_CIPHER_CTX *ctx = NULL; in SslAesGcmDecrypt()
223 static int32_t HandleError(EVP_CIPHER_CTX *ctx, const char *buf) in HandleError()
486 EVP_CIPHER_CTX *ctx = NULL; in SoftBusEncryptDataByCtr()
517 EVP_CIPHER_CTX *ctx = NULL; in SoftBusDecryptDataByCtr()
H A Dsoftbus_aes_encrypt.c277 static int32_t GcmOpensslEvpInit(EVP_CIPHER_CTX **ctx, uint32_t keyLen, int32_t encMode) in GcmOpensslEvpInit()
326 EVP_CIPHER_CTX *ctx = NULL; in OpensslAesGcmEncrypt()
379 EVP_CIPHER_CTX *ctx = NULL; in OpensslAesGcmDecrypt()
/ohos5.0/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/alg_module_test/src/
H A Dopenssl_aes_helper.c102 static uint32_t AesInit(EVP_CIPHER_CTX **ctx, const EVP_CIPHER **ciper, const struct HksParamSet *p… in AesInit()
138 EVP_CIPHER_CTX *ctx = NULL; in AesEncrypt()
192 EVP_CIPHER_CTX *ctx = NULL; in AesDecrypt()
246 EVP_CIPHER_CTX *ctx = NULL; in AesGcmEncrypt()
301 EVP_CIPHER_CTX *ctx = NULL; in AesGcmDecrypt()
/ohos5.0/drivers/peripheral/pin_auth/hdi_service/adaptor/src/
H A Dadaptor_algorithm.c422 static bool SetAesEncryptParam(EVP_CIPHER_CTX *ctx, const AesGcmParam *param) in SetAesEncryptParam()
449 static bool DoAesEncrypt(EVP_CIPHER_CTX *ctx, const Buffer *plaintext, Buffer **ciphertext, Buffer … in DoAesEncrypt()
503 EVP_CIPHER_CTX *ctx = EVP_CIPHER_CTX_new(); in AesGcm256Encrypt()
523 static bool SetAesDecryptParam(EVP_CIPHER_CTX *ctx, const AesGcmParam *param) in SetAesDecryptParam()
550 static bool DoAesDecrypt(EVP_CIPHER_CTX *ctx, const Buffer *ciphertext, const Buffer *tag, Buffer *… in DoAesDecrypt()
600 EVP_CIPHER_CTX *ctx = EVP_CIPHER_CTX_new(); in AesGcm256Decrypt()
/ohos5.0/base/security/crypto_framework/plugin/openssl_plugin/common/inc/
H A Dopenssl_adapter.h246 void OpensslEvpCipherCtxFree(EVP_CIPHER_CTX *ctx);
291 EVP_CIPHER_CTX *OpensslEvpCipherCtxNew(void);
292 int OpensslEvpCipherInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher,
294 int OpensslEvpCipherCtxSetPadding(EVP_CIPHER_CTX *ctx, int pad);
296 int OpensslEvpCipherFinalEx(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl);
297 int OpensslEvpCipherUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, const unsigned char …
312 int OpensslEvpCipherCtxCtrl(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr);
H A Daes_openssl_common.h27 EVP_CIPHER_CTX *ctx;
/ohos5.0/foundation/communication/wifi/wifi/base/security_utils/src/
H A Dwifi_openssl_utils.cpp76 EVP_CIPHER_CTX *ctx = nullptr; in OpensslAesEncrypt()
136 EVP_CIPHER_CTX *ctx = nullptr; in OpensslAesDecrypt()
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/
H A Dopenssl_crypto.cpp36 auto ctx = std::unique_ptr<EVP_CIPHER_CTX, decltype(&::EVP_CIPHER_CTX_free)>( in AESDecrypt()
84 auto ctx = std::unique_ptr<EVP_CIPHER_CTX, decltype(&::EVP_CIPHER_CTX_free)>( in AESEncrypt()
/ohos5.0/drivers/peripheral/user_auth/hdi_service/adaptor/src/
H A Dadaptor_algorithm.c309 static bool SetAesEncryptParam(EVP_CIPHER_CTX *ctx, const AesGcmParam *aesGcmParam) in SetAesEncryptParam()
347 EVP_CIPHER_CTX *ctx = EVP_CIPHER_CTX_new(); in AesGcmEncrypt()
391 static bool SetAesDecryptParam(EVP_CIPHER_CTX *ctx, const AesGcmParam *aesGcmParam) in SetAesDecryptParam()
429 EVP_CIPHER_CTX *ctx = EVP_CIPHER_CTX_new(); in AesGcmDecrypt()
/ohos5.0/base/security/crypto_framework/plugin/openssl_plugin/common/src/
H A Dopenssl_adapter.c927 void OpensslEvpCipherCtxFree(EVP_CIPHER_CTX *ctx) in OpensslEvpCipherCtxFree()
1122 EVP_CIPHER_CTX *OpensslEvpCipherCtxNew(void) in OpensslEvpCipherCtxNew()
1127 int OpensslEvpCipherInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, in OpensslEvpCipherInit()
1133 int OpensslEvpCipherCtxSetPadding(EVP_CIPHER_CTX *ctx, int pad) in OpensslEvpCipherCtxSetPadding()
1138 int OpensslEvpCipherFinalEx(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) in OpensslEvpCipherFinalEx()
1143 int OpensslEvpCipherUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, const unsigned char … in OpensslEvpCipherUpdate()
1211 int OpensslEvpCipherCtxCtrl(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr) in OpensslEvpCipherCtxCtrl()
/ohos5.0/base/security/crypto_framework/test/unittest/src/
H A Dopenssl_adapter_mock.c1361 void OpensslEvpCipherCtxFree(EVP_CIPHER_CTX *ctx) in OpensslEvpCipherCtxFree()
1608 EVP_CIPHER_CTX *OpensslEvpCipherCtxNew(void) in OpensslEvpCipherCtxNew()
1616 int OpensslEvpCipherInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, in OpensslEvpCipherInit()
1625 int OpensslEvpCipherCtxSetPadding(EVP_CIPHER_CTX *ctx, int pad) in OpensslEvpCipherCtxSetPadding()
1633 int OpensslEvpCipherFinalEx(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) in OpensslEvpCipherFinalEx()
1641 int OpensslEvpCipherUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, const unsigned char … in OpensslEvpCipherUpdate()
1706 int OpensslEvpCipherCtxCtrl(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr) in OpensslEvpCipherCtxCtrl()
/ohos5.0/base/notification/distributed_notification_service/services/ans/src/common/
H A Daes_gcm_helper.cpp178 EVP_CIPHER_CTX *ctx = EVP_CIPHER_CTX_new(); in EncryptAesGcm()
233 EVP_CIPHER_CTX *ctx = EVP_CIPHER_CTX_new(); in DecryptAesGcm()
/ohos5.0/base/security/huks/test/unittest/huks_standard_test/module_test/framework_test/crypto_engine_test/src/
H A Dhks_openssl_aes_test.cpp217 EVP_CIPHER_CTX *EvpCtx = EVP_CIPHER_CTX_new();
/ohos5.0/drivers/peripheral/clearplay/hdi_service/src/
H A Dmedia_decrypt_module_service.cpp140 EVP_CIPHER_CTX *ctx; in DecryptBySM4Cbc()