/base/security/crypto_framework/test/unittest/src/ |
D | crypto_sm2_cipher_test.cpp | 80 HcfCipher *cipher = nullptr; variable 104 HcfCipher *cipher = nullptr; variable 113 HcfCipher *cipher = nullptr; variable 123 HcfCipher *cipher = nullptr; variable 132 HcfCipher *cipher = nullptr; variable 148 HcfCipher *cipher = nullptr; variable 169 HcfCipher *cipher = nullptr; variable 190 HcfCipher *cipher = nullptr; variable 212 HcfCipher *cipher = nullptr; variable 233 HcfCipher *cipher = nullptr; variable [all …]
|
D | crypto_sm4_cipher_test.cpp | 96 static int32_t Sm4EncryptWithInput(HcfCipher *cipher, HcfSymKey *key, HcfBlob *input, in Sm4EncryptWithInput() 139 static int32_t Sm4DecryptEmptyMsg(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in Sm4DecryptEmptyMsg() 165 static int32_t Sm4Encrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in Sm4Encrypt() 208 static int32_t Sm4Decrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in Sm4Decrypt() 255 static int32_t Sm4NoUpdateEncrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in Sm4NoUpdateEncrypt() 285 static int32_t Sm4NoUpdateDecrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in Sm4NoUpdateDecrypt() 336 HcfCipher *cipher = nullptr; variable 383 HcfCipher *cipher = nullptr; variable 431 HcfCipher *cipher = nullptr; variable 478 HcfCipher *cipher = nullptr; variable [all …]
|
D | crypto_rsa_cipher_test.cpp | 161 HcfCipher *cipher = nullptr; variable 179 HcfCipher *cipher = nullptr; variable 194 HcfCipher *cipher = nullptr; variable 209 HcfCipher *cipher = nullptr; variable 224 HcfCipher *cipher = nullptr; variable 239 HcfCipher *cipher = nullptr; variable 254 HcfCipher *cipher = nullptr; variable 269 HcfCipher *cipher = nullptr; variable 284 HcfCipher *cipher = nullptr; variable 299 HcfCipher *cipher = nullptr; variable [all …]
|
D | crypto_3des_cipher_test.cpp | 73 static int32_t DesEncrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in DesEncrypt() 116 static int32_t DesDecrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in DesDecrypt() 163 static int32_t DesNoUpdateEncrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in DesNoUpdateEncrypt() 193 static int32_t DesNoUpdateDecrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in DesNoUpdateDecrypt() 234 HcfCipher *cipher = nullptr; variable 281 HcfCipher *cipher = nullptr; variable 329 HcfCipher *cipher = nullptr; variable 377 HcfCipher *cipher = nullptr; variable 428 HcfCipher *cipher = nullptr; variable 478 HcfCipher *cipher = nullptr; variable [all …]
|
D | crypto_aes_cipher_test.cpp | 184 static int32_t AesMultiBlockEncrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params) in AesMultiBlockEncrypt() 238 static int32_t AesMultiBlockDecrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params) in AesMultiBlockDecrypt() 293 static int32_t AesEncryptWithInput(HcfCipher *cipher, HcfSymKey *key, HcfBlob *input, in AesEncryptWithInput() 336 static int32_t AesEncrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in AesEncrypt() 381 static int32_t AesDecrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in AesDecrypt() 429 static int32_t AesNoUpdateEncWithInput(HcfCipher *cipher, HcfSymKey *key, HcfBlob *input, in AesNoUpdateEncWithInput() 460 static int32_t AesDecryptEmptyMsg(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in AesDecryptEmptyMsg() 485 static int32_t AesNoUpdateEncrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in AesNoUpdateEncrypt() 517 static int32_t AesNoUpdateDecrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in AesNoUpdateDecrypt() 565 HcfCipher *cipher = nullptr; variable [all …]
|
D | crypto_sm4_generator_test.cpp | 531 HcfCipher *cipher = nullptr; variable 593 HcfCipher *cipher = nullptr; variable
|
/base/security/crypto_framework/test/fuzztest/crypto_operation/hcfciphercreate_fuzzer/ |
D | hcfciphercreate_fuzzer.cpp | 33 static int32_t AesEncrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in AesEncrypt() 72 static int32_t AesDecrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in AesDecrypt() 121 HcfCipher *cipher = nullptr; in TestAesCipher() local 164 HcfCipher *cipher = nullptr; in TestRsaCipher() local 200 HcfCipher *cipher = nullptr; in HcfCipherCreateFuzzTest() local
|
/base/security/crypto_framework/frameworks/crypto_operation/ |
D | cipher.c | 54 static void SetKeyType(HcfAlgParaValue value, void *cipher) in SetKeyType() 82 static void SetKeyLength(HcfAlgParaValue value, void *cipher) in SetKeyLength() 118 static void SetMode(HcfAlgParaValue value, void *cipher) in SetMode() 124 static void SetPadding(HcfAlgParaValue value, void *cipher) in SetPadding() 130 static void SetDigest(HcfAlgParaValue value, CipherAttr *cipher) in SetDigest() 135 static void SetMgf1Digest(HcfAlgParaValue value, CipherAttr *cipher) in SetMgf1Digest() 140 static HcfResult OnSetParameter(const HcfParaConfig *config, void *cipher) in OnSetParameter() 315 static void InitCipher(HcfCipherGeneratorSpi *spiObj, CipherGenImpl *cipher) in InitCipher()
|
/base/security/device_auth/services/authenticators/src/account_unrelated/pake_task/standard_exchange_task/ |
D | standard_exchange_message_util.c | 25 int32_t PackageNonceAndCipherToJson(const Uint8Buff *nonce, const Uint8Buff *cipher, CJson *data, c… in PackageNonceAndCipherToJson() 52 int32_t ParseNonceAndCipherFromJson(Uint8Buff *nonce, Uint8Buff *cipher, const CJson *in, const cha… in ParseNonceAndCipherFromJson()
|
/base/security/crypto_framework/frameworks/js/napi/crypto/src/ |
D | napi_cipher.cpp | 41 HcfCipher *cipher = nullptr; member 300 HcfCipher *cipher = context->cipher; in AsyncInitProcess() local 315 HcfCipher *cipher = context->cipher; in AsyncUpdateProcess() local 326 HcfCipher *cipher = context->cipher; in AsyncDoFinalProcess() local 460 NapiCipher::NapiCipher(HcfCipher *cipher) in NapiCipher() 544 HcfCipher *cipher = napiCipher->GetCipher(); in JsGetAlgorithm() local 593 HcfCipher *cipher = nullptr; in CreateCipher() local 656 HcfCipher *cipher = napiCipher->GetCipher(); in JsSetCipherSpec() local 666 static napi_value GetCipherSpecString(napi_env env, CipherSpecItem item, HcfCipher *cipher) in GetCipherSpecString() 682 static napi_value GetCipherSpecUint8Array(napi_env env, CipherSpecItem item, HcfCipher *cipher) in GetCipherSpecUint8Array() [all …]
|
/base/security/huks/frameworks/crypto_lite/cipher/src/ |
D | cipher_rsa.c | 320 static int32_t RsaEncrypt(RsaKeyData *key, const RsaData *plain, RsaData *cipher) in RsaEncrypt() 365 static int32_t CheckParamAndMallocBuf(size_t rsaLen, const RsaData *cipher, unsigned char **buf, un… in CheckParamAndMallocBuf() 383 static int32_t RsaPkcs1Decrypt(mbedtls_rsa_context *rsa, size_t rsaLen, RsaData *cipher, RsaData *p… in RsaPkcs1Decrypt() 438 static int32_t RsaDecrypt(RsaKeyData *key, RsaData *cipher, RsaData *plain) in RsaDecrypt()
|
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/symmetric_alg_test/ |
D | hks_aes_cipher_test_common.cpp | 129 uint8_t cipher[AES_COMMON_SIZE] = {0}; in HksAesCipherTestCaseOther() local 161 uint8_t cipher[AES_COMMON_SIZE] = {0}; in HksAesCipherTestCaseGcm2() local
|
D | hks_aes_cipher_part3_test.cpp | 1082 uint8_t cipher[AES_COMMON_SIZE] = {0}; variable
|
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/asymmetric_alg_test/ |
D | hks_rsa_cipher_test_common.cpp | 130 uint8_t cipher[Unittest::RsaCipher::RSA_COMMON_SIZE] = {0}; in HksRsaCipherTestCase() local 166 uint8_t cipher[Unittest::RsaCipher::RSA_COMMON_SIZE] = {0}; in HksRsaCipherTestCaseAbnormal() local
|
D | hks_rsa_cipher_part5_test.cpp | 349 uint8_t cipher[RSA_COMMON_SIZE] = {0}; variable
|
/base/security/device_auth/frameworks/deviceauth_lite/source/auth_info/ |
D | auth_info.h | 27 struct uint8_buff cipher; member
|
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/ |
D | hks_sm4_cipher_test_common.cpp | 89 uint8_t cipher[SM4_COMMON_SIZE] = {0}; in HksSm4CipherTestCaseOther() local
|
D | hks_cross_test.cpp | 84 uint8_t cipher[CROSS_COMMON_SIZE] = {0}; variable 127 uint8_t cipher[CROSS_COMMON_SIZE] = {0}; variable 174 uint8_t cipher[CROSS_COMMON_SIZE] = {0}; variable 222 uint8_t cipher[CROSS_COMMON_SIZE] = {0}; variable
|
/base/web/webview/ohos_adapter/keystore_adapter/src/ |
D | keystore_adapter_impl.cpp | 143 uint8_t cipher[AES_COMMON_SIZE] = {0}; in EncryptKey() local
|
/base/security/dlp_permission_service/frameworks/test/mock/ |
D | openssl_mock.cpp | 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()
|
/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/src/ |
D | dlp_crypt.cpp | 127 const EVP_CIPHER* cipher = GetCtrCipherType(key->size); in OpensslAesCipherInit() local 226 const EVP_CIPHER* cipher = GetCtrCipherType(key->size); in OpensslAesCipherCryptInit() local
|
/base/security/device_auth/frameworks/deviceauth_lite/source/huks_adapter/ |
D | huks_adapter.c | 550 const struct uint8_buff *cipher, struct aes_aad *aad, uint32_t key_byte_size) in init_aes_gcm_decrypt_param_set() 583 int32_t aes_gcm_decrypt(struct var_buffer *key, const struct uint8_buff *cipher, in aes_gcm_decrypt() 1664 const struct uint8_buff *cipher, const struct aes_aad *aad) in init_aes_ccm_decrypt_key_params() 1707 int32_t aes_ccm_decrypt(struct var_buffer *key, const struct uint8_buff *cipher, in aes_ccm_decrypt()
|
/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/mini/ |
D | huks_adapter.c | 368 static int32_t CheckAesGcmDecryptParam(const Uint8Buff *key, const Uint8Buff *cipher, const GcmPara… in CheckAesGcmDecryptParam() 388 static int32_t AesGcmDecrypt(const Uint8Buff *key, const Uint8Buff *cipher, in AesGcmDecrypt()
|
/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/ |
D | hks_openssl_aes.c | 98 const EVP_CIPHER *cipher = getCipherType(key->size, usageSpec->mode); in ENABLE_CFI() local 674 const EVP_CIPHER *cipher = GetAesCipherType(key->size, usageSpec->mode); in OpensslAesCipherInit() local
|
/base/security/device_auth/frameworks/deviceauth_lite/source/key_agreement/ |
D | sts_client.c | 410 struct uint8_buff cipher = { receive->auth_return.auth_return, in parse_end_response_data() local
|