/base/security/crypto_framework/test/unittest/src/ |
D | crypto_sm4_cipher_test.cpp | 97 uint8_t *cipherText, int *cipherTextLen) in Sm4EncryptWithInput() 140 uint8_t *cipherText, int cipherTextLen) in Sm4DecryptEmptyMsg() 166 uint8_t *cipherText, int *cipherTextLen) in Sm4Encrypt() 209 uint8_t *cipherText, int cipherTextLen) in Sm4Decrypt() 256 uint8_t *cipherText, int *cipherTextLen) in Sm4NoUpdateEncrypt() 286 uint8_t *cipherText, int cipherTextLen) in Sm4NoUpdateDecrypt() 332 uint8_t cipherText[128] = {0}; variable 379 uint8_t cipherText[128] = {0}; variable 427 uint8_t cipherText[128] = {0}; variable 474 uint8_t cipherText[128] = {0}; variable [all …]
|
D | crypto_3des_cipher_test.cpp | 74 uint8_t *cipherText, int *cipherTextLen) in DesEncrypt() 117 uint8_t *cipherText, int cipherTextLen) in DesDecrypt() 164 uint8_t *cipherText, int *cipherTextLen) in DesNoUpdateEncrypt() 194 uint8_t *cipherText, int cipherTextLen) in DesNoUpdateDecrypt() 230 uint8_t cipherText[128] = {0}; variable 277 uint8_t cipherText[128] = {0}; variable 325 uint8_t cipherText[128] = {0}; variable 373 uint8_t cipherText[128] = {0}; variable 424 uint8_t cipherText[128] = {0}; variable 474 uint8_t cipherText[128] = {0}; variable [all …]
|
D | crypto_aes_cipher_test.cpp | 294 uint8_t *cipherText, int *cipherTextLen) in AesEncryptWithInput() 337 uint8_t *cipherText, int *cipherTextLen) in AesEncrypt() 382 uint8_t *cipherText, int cipherTextLen) in AesDecrypt() 430 uint8_t *cipherText, int *cipherTextLen) in AesNoUpdateEncWithInput() 461 uint8_t *cipherText, int cipherTextLen) in AesDecryptEmptyMsg() 486 uint8_t *cipherText, int *cipherTextLen) in AesNoUpdateEncrypt() 518 uint8_t *cipherText, int cipherTextLen) in AesNoUpdateDecrypt() 561 uint8_t cipherText[128] = {0}; variable 613 uint8_t cipherText[128] = {0}; variable 658 uint8_t cipherText[128] = {0}; variable [all …]
|
/base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/src/ |
D | hks_mbedtls_aes.c | 99 const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in AesCbcNoPaddingCrypt() 183 const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in AesCbcNoPaddingCryptUpdate() 229 const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in AesCbcNoPaddingCryptFinal() 281 const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in AesCbcPkcs7Crypt() 397 … AesCbcPkcs7CryptUpdate(void *cryptoCtx, const struct HksBlob *message, struct HksBlob *cipherText) in AesCbcPkcs7CryptUpdate() 416 struct HksBlob *cipherText) in AesCbcPkcs7CryptFinal() 464 const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in AesCbcCrypt() 502 const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in AesCbcCryptUpdate() 520 const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in AesCbcCryptFinal() 540 const struct HksBlob *message, struct HksBlob *cipherText, struct HksBlob *tagAead) in AesEncryptGcm() [all …]
|
D | hks_mbedtls_engine.c | 30 const struct HksBlob *message, struct HksBlob *cipherText) in EncryptCheckParam() 263 const struct HksBlob *message, struct HksBlob *cipherText, struct HksBlob *tagAead) in HksCryptoHalEncrypt() 297 …2_t HksCryptoHalEncryptFinal(const struct HksBlob *message, void **ctx, struct HksBlob *cipherText, in HksCryptoHalEncryptFinal() 325 const struct HksBlob *message, struct HksBlob *cipherText) in HksCryptoHalDecrypt() 358 …2_t HksCryptoHalDecryptFinal(const struct HksBlob *message, void **ctx, struct HksBlob *cipherText, in HksCryptoHalDecryptFinal()
|
D | hks_mbedtls_rsa.c | 264 const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in HksMbedtlsRsaCrypt() 319 const struct HksBlob *message, struct HksBlob *cipherText, struct HksBlob *tagAead) in HksMbedtlsRsaEncrypt() 326 const struct HksBlob *message, struct HksBlob *cipherText) in HksMbedtlsRsaDecrypt()
|
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/asymmetric_alg_test/ |
D | hks_rsa_cipher_test_common.cpp | 21 …onst struct HksParamSet *encryptParamSet, const struct HksBlob *inData, struct HksBlob *cipherText) in HksRsaCipherTestEncryptAbnormal() 53 …onst struct HksParamSet *encryptParamSet, const struct HksBlob *inData, struct HksBlob *cipherText) in HksRsaCipherTestEncrypt() 82 …const struct HksParamSet *decryptParamSet, const struct HksBlob *cipherText, struct HksBlob *plain… in HksRsaCipherTestDecrypt() 131 struct HksBlob cipherText = { Unittest::RsaCipher::RSA_COMMON_SIZE, cipher }; in HksRsaCipherTestCase() local 167 struct HksBlob cipherText = { Unittest::RsaCipher::RSA_COMMON_SIZE, cipher }; in HksRsaCipherTestCaseAbnormal() local
|
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/ |
D | hks_sm4_cipher_test_common.cpp | 24 …onst struct HksParamSet *encryptParamSet, const struct HksBlob *inData, struct HksBlob *cipherText) in HksSm4CipherTestEncrypt() 45 …const struct HksParamSet *decryptParamSet, const struct HksBlob *cipherText, struct HksBlob *plain… in HksSm4CipherTestDecrypt() 90 struct HksBlob cipherText = { SM4_COMMON_SIZE, cipher }; in HksSm4CipherTestCaseOther() local
|
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/symmetric_alg_test/ |
D | hks_aes_cipher_test_common.cpp | 24 …onst struct HksParamSet *encryptParamSet, const struct HksBlob *inData, struct HksBlob *cipherText) in HksAesCipherTestEncrypt() 54 …const struct HksParamSet *decryptParamSet, const struct HksBlob *cipherText, struct HksBlob *plain… in HksAesCipherTestDecrypt() 130 struct HksBlob cipherText = { AES_COMMON_SIZE, cipher }; in HksAesCipherTestCaseOther() local 162 struct HksBlob cipherText = { AES_COMMON_SIZE, cipher }; in HksAesCipherTestCaseGcm2() local
|
/base/security/huks/test/unittest/huks_standard_test/crypto_engine_test/src/ |
D | hks_crypto_hal_api_mbedtls.cpp | 133 HksBlob cipherText = { .size = 0, .data = nullptr }; variable 168 HksBlob cipherText = { .size = 0, .data = nullptr }; variable 203 HksBlob cipherText = { .size = 1, .data = buff }; variable 227 HksBlob cipherText = { .size = 1, .data = buff }; variable 250 HksBlob cipherText = { .size = 1, .data = buff }; variable 275 HksBlob cipherText = { .size = 1, .data = buff }; variable 297 HksBlob cipherText = { .size = 1, .data = buff }; variable
|
D | hks_crypto_hal_api_openssl.cpp | 153 HksBlob cipherText = { .size = 0, .data = nullptr }; variable 188 HksBlob cipherText = { .size = 0, .data = nullptr }; variable 223 HksBlob cipherText = { .size = 1, .data = buff }; variable 259 HksBlob cipherText = { .size = 1, .data = buff }; variable 287 HksBlob cipherText = { .size = 1, .data = buff }; variable 734 HksBlob cipherText = { .size = 0, .data = nullptr }; variable 845 HksBlob cipherText = { .size = 0, .data = nullptr }; variable
|
/base/security/crypto_framework/test/fuzztest/crypto_operation/hcfciphercreate_fuzzer/ |
D | hcfciphercreate_fuzzer.cpp | 34 uint8_t *cipherText, int *cipherTextLen) in AesEncrypt() 73 uint8_t *cipherText, int cipherTextLen) in AesDecrypt() 118 uint8_t cipherText[128] = {0}; in TestAesCipher() local
|
/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/ |
D | hks_openssl_sm4.c | 114 …OpensslSm4EncryptUpdate(void *cryptoCtx, const struct HksBlob *message, struct HksBlob *cipherText) in HksOpensslSm4EncryptUpdate() 142 …OpensslSm4EncryptFinal(void **cryptoCtx, const struct HksBlob *message, struct HksBlob *cipherText, in HksOpensslSm4EncryptFinal() 212 …OpensslSm4DecryptFinal(void **cryptoCtx, const struct HksBlob *message, struct HksBlob *cipherText, in HksOpensslSm4DecryptFinal() 269 const struct HksBlob *message, struct HksBlob *cipherText) in HksOpensslSm4Encrypt()
|
D | hks_openssl_aes.c | 140 void *cryptoCtx, const struct HksBlob *message, struct HksBlob *cipherText) in OpensslBlockCipherEncryptUpdate() 202 void **cryptoCtx, const struct HksBlob *message, struct HksBlob *cipherText) in OpensslBlockCipherEncryptFinalThree() 373 const struct HksBlob *message, struct HksBlob *cipherText, struct HksBlob *tagAead) in OpensslAesAeadEncryptFinal() 530 struct HksBlob *cipherText) in OpensslAesAeadEnryptUpdate() 564 struct HksBlob *cipherText, struct HksBlob *tagAead) in OpensslAesAeadEncryptFinalGCM() 717 EVP_CIPHER_CTX *ctx, const struct HksBlob *message, struct HksBlob *cipherText) in OpensslAesCipherEncryptFinal() 792 …OpensslAesEncryptUpdate(void *cryptoCtx, const struct HksBlob *message, struct HksBlob *cipherText) in HksOpensslAesEncryptUpdate() 825 …OpensslAesEncryptFinal(void **cryptoCtx, const struct HksBlob *message, struct HksBlob *cipherText, in HksOpensslAesEncryptFinal() 911 …OpensslAesDecryptFinal(void **cryptoCtx, const struct HksBlob *message, struct HksBlob *cipherText, in HksOpensslAesDecryptFinal() 983 const struct HksBlob *message, struct HksBlob *cipherText, struct HksBlob *tagAead) in HksOpensslAesEncrypt()
|
D | hks_openssl_engine.c | 110 const struct HksBlob *message, struct HksBlob *cipherText) in EncryptCheckParam() 125 const struct HksBlob *message, struct HksBlob *cipherText) in DecryptCheckParam() 380 const struct HksBlob *message, struct HksBlob *cipherText, struct HksBlob *tagAead) in HksCryptoHalEncrypt() 420 …2_t HksCryptoHalEncryptFinal(const struct HksBlob *message, void **ctx, struct HksBlob *cipherText, in HksCryptoHalEncryptFinal() 448 const struct HksBlob *message, struct HksBlob *cipherText) in HksCryptoHalDecrypt() 484 …2_t HksCryptoHalDecryptFinal(const struct HksBlob *message, void **ctx, struct HksBlob *cipherText, in HksCryptoHalDecryptFinal()
|
D | hks_openssl_rsa.c | 354 const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in HksOpensslRsaCrypt() 403 const struct HksBlob *message, struct HksBlob *cipherText, struct HksBlob *tagAead) in HksOpensslRsaEncrypt() 410 const struct HksBlob *message, struct HksBlob *cipherText) in HksOpensslRsaDecrypt()
|
/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/test/ |
D | dlp_crypt_test.cpp | 113 struct DlpBlob cipherText = {15, enc}; variable 134 struct DlpBlob cipherText = {15, enc}; variable 155 struct DlpBlob cipherText = {15, enc}; variable 382 struct DlpBlob cipherText = {32, g_key}; variable 403 struct DlpBlob cipherText = {15, enc}; variable 461 struct DlpBlob cipherText = {15, enc}; variable 495 struct DlpBlob cipherText = {32, g_key}; variable 528 struct DlpBlob cipherText = {15, enc}; variable 566 struct DlpBlob cipherText = {15, enc}; variable 604 struct DlpBlob cipherText = {15, enc}; variable [all …]
|
/base/web/webview/ohos_adapter/keystore_adapter/src/ |
D | keystore_adapter_impl.cpp | 144 struct HksBlob cipherText = {AES_COMMON_SIZE, cipher}; in EncryptKey() local 192 struct HksBlob cipherText = { encryptedData.length(), (uint8_t *)encryptedData.c_str() }; in DecryptKey() local
|
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/alg_module_test/src/ |
D | hks_rsa_common_mt.cpp | 73 HksBlob cipherText = { .size = inLength, .data = static_cast<uint8_t *>(HksMalloc(inLength)) }; in GenerateKeyTestCase() local 140 HksBlob cipherText = { .size = inLength, .data = static_cast<uint8_t *>(HksMalloc(inLength)) }; in EncryptLocalTestCase() local 187 HksBlob cipherText = { .size = inLen, .data = static_cast<uint8_t *>(HksMalloc(inLen)) }; in EncryptServiceTestCase() local 270 HksBlob cipherText = { .size = inLength, .data = static_cast<uint8_t *>(HksMalloc(inLength)) }; in DecryptLocalTestCase() local 330 HksBlob cipherText = { .size = inLength, .data = static_cast<uint8_t *>(HksMalloc(inLength)) }; in DecryptServiceTestCase() local
|
/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/src/ |
D | dlp_crypt.cpp | 169 EVP_CIPHER_CTX* ctx, const struct DlpBlob* message, struct DlpBlob* cipherText) in OpensslAesCipherEncryptFinal() 266 …lAesCipherEncryptUpdate(void* cryptoCtx, const struct DlpBlob* message, struct DlpBlob* cipherText) in OpensslAesCipherEncryptUpdate() 285 void** cryptoCtx, const struct DlpBlob* message, struct DlpBlob* cipherText) in OpensslAesCipherEncryptFinalThree() 434 …OpensslAesEncryptUpdate(void* cryptoCtx, const struct DlpBlob* message, struct DlpBlob* cipherText) in DlpOpensslAesEncryptUpdate() 469 …OpensslAesEncryptFinal(void** cryptoCtx, const struct DlpBlob* message, struct DlpBlob* cipherText) in DlpOpensslAesEncryptFinal() 631 const struct DlpBlob* message, struct DlpBlob* cipherText) in AesParamCheck() 657 const struct DlpBlob* message, struct DlpBlob* cipherText) in DlpOpensslAesEncrypt()
|
/base/security/huks/services/huks_standard/huks_engine/main/core/src/ |
D | hks_chipset_platform_decrypt.c | 82 static int32_t CheckText(const struct HksBlob *cipherText, const struct HksBlob *plainText) in CheckText() 159 struct HksBlob cipherText = cipherTextParam->blob; in DoAesDecrypt() local
|
/base/security/huks/services/huks_standard/huks_service/main/os_dependency/ca/ |
D | hks_ca_access.c | 54 const struct HksBlob *plainText, struct HksBlob *cipherText) in HksAccessEncrypt() 60 const struct HksBlob *cipherText, struct HksBlob *plainText) in HksAccessDecrypt()
|
/base/security/huks/test/unittest/huks_lite_test/common/ |
D | hks_test_aes.c | 383 struct HksBlob cipherText = { g_bufferSize, g_buffer }; in TestAes256ByAgree() local 451 struct HksBlob cipherText = { g_bufferSize, g_buffer }; in TestAes256ByAgree1() local 509 struct HksBlob cipherText = { g_bufferSize, g_buffer }; in TestAes256ByAgree2() local 577 struct HksBlob cipherText = { g_bufferSize, g_buffer }; in TestAes256ByLocal() local
|
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/ |
D | hks_test_aes.c | 381 struct HksBlob cipherText = { g_bufferSize, g_buffer }; in TestAes256ByAgree() local 449 struct HksBlob cipherText = { g_bufferSize, g_buffer }; in TestAes256ByAgree1() local 507 struct HksBlob cipherText = { g_bufferSize, g_buffer }; in TestAes256ByAgree2() local
|
/base/security/huks/test/unittest/huks_lite_test/liteos_a_adapter/upgrade_test/version_one/ |
D | hks_compatibility_test.cpp | 173 uint8_t cipherText[1024] = { 0 }; variable 270 uint8_t cipherText[1024] = { 0 }; variable 417 uint8_t cipherText[1024] = { 0 }; variable
|