Home
last modified time | relevance | path

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

/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/test/
Ddlp_crypt_test.cpp111 uint8_t enc[16] = {0}; variable
113 struct DlpBlob cipherText = {15, enc};
131 uint8_t enc[16] = {0}; variable
134 struct DlpBlob cipherText = {15, enc};
153 uint8_t enc[16] = {0}; variable
155 struct DlpBlob cipherText = {15, enc};
238 uint8_t enc[16] = {0}; variable
240 struct DlpBlob plainText = {15, enc};
402 uint8_t enc[16] = {0}; variable
403 struct DlpBlob cipherText = {15, enc};
[all …]
/base/security/crypto_framework/plugin/openssl_plugin/common/inc/
Daes_openssl_common.h28 enum HcfCryptoMode enc; member
Dopenssl_adapter.h177 int Openssl_i2d_PKCS8PrivateKey_bio(BIO *bp, EVP_PKEY *x, const EVP_CIPHER *enc,
250 const unsigned char *key, const unsigned char *iv, int enc);
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/cipher/src/
Dcipher_3des_openssl.c79 (*cipherData)->enc = opMode; in InitCipherData()
112 int32_t enc = (opMode == ENCRYPT_MODE) ? 1 : 0; in EngineCipherInit() local
124 …if (Openssl_EVP_CipherInit(data->ctx, GetCipherType(cipherImpl), NULL, NULL, enc) != HCF_OPENSSL_S… in EngineCipherInit()
129 …if (Openssl_EVP_CipherInit(data->ctx, NULL, keyImpl->keyMaterial.data, GetIv(params), enc) != HCF_… in EngineCipherInit()
Dcipher_aes_openssl.c349 (*cipherData)->enc = opMode; in InitCipherData()
387 int enc = (opMode == ENCRYPT_MODE) ? 1 : 0; in EngineCipherInit() local
397 GetIv(params), enc) != HCF_OPENSSL_SUCCESS) { in EngineCipherInit()
552 int32_t authTagLen = data->enc == ENCRYPT_MODE ? CCM_TAG_SIZE : 0; in AllocateCcmOutput()
607 if (data->enc == ENCRYPT_MODE) { in CcmDoFinal()
609 } else if (data->enc == DECRYPT_MODE) { in CcmDoFinal()
665 int32_t authTagLen = data->enc == ENCRYPT_MODE ? GCM_TAG_SIZE : 0; in AllocateGcmOutput()
698 if (data->enc == ENCRYPT_MODE) { in GcmDoFinal()
700 } else if (data->enc == DECRYPT_MODE) { in GcmDoFinal()
Dcipher_sm4_openssl.c149 data->enc = opMode; in InitCipherData()
223 int32_t enc = (opMode == ENCRYPT_MODE) ? 1 : 0; in EngineCipherInit() local
225 …if (Openssl_EVP_CipherInit(data->ctx, GetCipherType(cipherImpl, keyImpl), NULL, NULL, enc) != HCF_… in EngineCipherInit()
231 …if (Openssl_EVP_CipherInit(data->ctx, NULL, keyImpl->keyMaterial.data, GetIv(params), enc) != HCF_… in EngineCipherInit()
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
Drbtree.c51 RbTreeValueEncoder enc; member
432 int rc = ctx->enc(value, NULL, &valueSize); /* get value size */ in Encoder()
470 rc = ctx->enc(value, buf, &valueSize); in Encoder()
481 int32_t RbTreeEncode(const struct RbTree *t, RbTreeValueEncoder enc, uint8_t *buf, uint32_t *size) in RbTreeEncode() argument
483 if (t == NULL || t->root == NULL || enc == NULL || size == NULL) { in RbTreeEncode()
493 .enc = enc, in RbTreeEncode()
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/include/
Drbtree.h63 int32_t RbTreeEncode(const struct RbTree *t, RbTreeValueEncoder enc, uint8_t *buf, uint32_t *size);
/base/security/crypto_framework/plugin/openssl_plugin/common/src/
Dopenssl_adapter.c665 int Openssl_i2d_PKCS8PrivateKey_bio(BIO *bp, EVP_PKEY *x, const EVP_CIPHER *enc, in Openssl_i2d_PKCS8PrivateKey_bio() argument
668 return i2d_PKCS8PrivateKey_bio(bp, x, enc, kstr, klen, cb, u); in Openssl_i2d_PKCS8PrivateKey_bio()
967 const unsigned char *key, const unsigned char *iv, int enc) in Openssl_EVP_CipherInit() argument
969 return EVP_CipherInit(ctx, cipher, key, iv, enc); in Openssl_EVP_CipherInit()
/base/security/crypto_framework/test/unittest/src/
Dopenssl_adapter_mock.c980 int Openssl_i2d_PKCS8PrivateKey_bio(BIO *bp, EVP_PKEY *x, const EVP_CIPHER *enc, in Openssl_i2d_PKCS8PrivateKey_bio() argument
983 return i2d_PKCS8PrivateKey_bio(bp, x, enc, kstr, klen, cb, u); in Openssl_i2d_PKCS8PrivateKey_bio()
1382 const unsigned char *key, const unsigned char *iv, int enc) in Openssl_EVP_CipherInit() argument
1387 return EVP_CipherInit(ctx, cipher, key, iv, enc); in Openssl_EVP_CipherInit()