| /base/security/crypto_framework/test/unittest/src/ |
| 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 | 291 uint8_t *cipherText, int *cipherTextLen) in AesEncrypt() 336 uint8_t *cipherText, int cipherTextLen) in AesDecrypt() 384 uint8_t *cipherText, int *cipherTextLen) in AesNoUpdateEncrypt() 416 uint8_t *cipherText, int cipherTextLen) in AesNoUpdateDecrypt() 459 uint8_t cipherText[128] = {0}; variable 511 uint8_t cipherText[128] = {0}; variable 556 uint8_t cipherText[128] = {0}; variable 603 uint8_t cipherText[128] = {0}; variable 654 uint8_t cipherText[128] = {0}; variable 705 uint8_t cipherText[128] = {0}; variable [all …]
|
| /base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/src/ |
| D | hks_mbedtls_aes.c | 98 const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in AesCbcNoPaddingCrypt() 181 const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in AesCbcNoPaddingCryptUpdate() 227 const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in AesCbcNoPaddingCryptFinal() 279 const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in AesCbcPkcs7Crypt() 389 … AesCbcPkcs7CryptUpdate(void *cryptoCtx, const struct HksBlob *message, struct HksBlob *cipherText) in AesCbcPkcs7CryptUpdate() 407 struct HksBlob *cipherText) in AesCbcPkcs7CryptFinal() 453 const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in AesCbcCrypt() 491 const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in AesCbcCryptUpdate() 509 const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in AesCbcCryptFinal() 529 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() 270 const struct HksBlob *message, struct HksBlob *cipherText, struct HksBlob *tagAead) in HksCryptoHalEncrypt() 304 …2_t HksCryptoHalEncryptFinal(const struct HksBlob *message, void **ctx, struct HksBlob *cipherText, in HksCryptoHalEncryptFinal() 332 const struct HksBlob *message, struct HksBlob *cipherText) in HksCryptoHalDecrypt() 365 …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/ |
| 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
|
| 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
|
| 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
|
| D | hks_cross_test.cpp | 76 struct HksBlob cipherText = { CROSS_COMMON_SIZE, cipher }; variable 119 struct HksBlob cipherText = { CROSS_COMMON_SIZE, cipher }; variable 166 struct HksBlob cipherText = { CROSS_COMMON_SIZE, cipher }; variable 214 struct HksBlob cipherText = { CROSS_COMMON_SIZE, cipher }; variable
|
| /base/security/huks/test/unittest/huks_standard_test/crypto_engine_test/src/ |
| D | hks_crypto_hal_api_mbedtls.cpp | 130 HksBlob cipherText = { .size = 0, .data = nullptr }; variable 165 HksBlob cipherText = { .size = 0, .data = nullptr }; variable 200 HksBlob cipherText = { .size = 1, .data = buff }; variable 224 HksBlob cipherText = { .size = 1, .data = buff }; variable 247 HksBlob cipherText = { .size = 1, .data = buff }; variable 272 HksBlob cipherText = { .size = 1, .data = buff }; variable 294 HksBlob cipherText = { .size = 1, .data = buff }; variable
|
| D | hks_crypto_hal_api_openssl.cpp | 149 HksBlob cipherText = { .size = 0, .data = nullptr }; variable 184 HksBlob cipherText = { .size = 0, .data = nullptr }; variable 219 HksBlob cipherText = { .size = 1, .data = buff }; variable 255 HksBlob cipherText = { .size = 1, .data = buff }; variable 283 HksBlob cipherText = { .size = 1, .data = buff }; variable 730 HksBlob cipherText = { .size = 0, .data = nullptr }; variable 841 HksBlob cipherText = { .size = 0, .data = nullptr }; variable
|
| D | hks_crypto_hal_rsa_decrypt.cpp | 491 …HksBlob cipherText = { .size = outLen, .data = (uint8_t *)HksMalloc(outLen + HKS_PADDING_SUPPLENME… in RunTestCase() local
|
| /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_aes.c | 139 void *cryptoCtx, const struct HksBlob *message, struct HksBlob *cipherText) in OpensslBlockCipherEncryptUpdate() 158 void **cryptoCtx, const struct HksBlob *message, struct HksBlob *cipherText) in OpensslBlockCipherEncryptFinalThree() 391 const struct HksBlob *message, struct HksBlob *cipherText, struct HksBlob *tagAead) in OpensslAesAeadEncryptFinal() 547 struct HksBlob *cipherText) in OpensslAesAeadEnryptUpdate() 581 struct HksBlob *cipherText, struct HksBlob *tagAead) in OpensslAesAeadEncryptFinalGCM() 734 EVP_CIPHER_CTX *ctx, const struct HksBlob *message, struct HksBlob *cipherText) in OpensslAesCipherEncryptFinal() 809 …OpensslAesEncryptUpdate(void *cryptoCtx, const struct HksBlob *message, struct HksBlob *cipherText) in HksOpensslAesEncryptUpdate() 842 …OpensslAesEncryptFinal(void **cryptoCtx, const struct HksBlob *message, struct HksBlob *cipherText, in HksOpensslAesEncryptFinal() 928 …OpensslAesDecryptFinal(void **cryptoCtx, const struct HksBlob *message, struct HksBlob *cipherText, in HksOpensslAesDecryptFinal() 1000 const struct HksBlob *message, struct HksBlob *cipherText, struct HksBlob *tagAead) in HksOpensslAesEncrypt()
|
| 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()
|
| D | hks_openssl_engine.c | 109 const struct HksBlob *message, struct HksBlob *cipherText) in EncryptCheckParam() 124 const struct HksBlob *message, struct HksBlob *cipherText) in DecryptCheckParam() 384 const struct HksBlob *message, struct HksBlob *cipherText, struct HksBlob *tagAead) in HksCryptoHalEncrypt() 424 …2_t HksCryptoHalEncryptFinal(const struct HksBlob *message, void **ctx, struct HksBlob *cipherText, in HksCryptoHalEncryptFinal() 452 const struct HksBlob *message, struct HksBlob *cipherText) in HksCryptoHalDecrypt() 488 …2_t HksCryptoHalDecryptFinal(const struct HksBlob *message, void **ctx, struct HksBlob *cipherText, in HksCryptoHalDecryptFinal()
|
| D | hks_openssl_rsa.c | 341 const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in HksOpensslRsaCrypt() 390 const struct HksBlob *message, struct HksBlob *cipherText, struct HksBlob *tagAead) in HksOpensslRsaEncrypt() 397 const struct HksBlob *message, struct HksBlob *cipherText) in HksOpensslRsaDecrypt()
|
| /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/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
|
| D | hks_test_api_performance.c | 42 const struct HksBlob *plainText, struct HksBlob *cipherText, uint32_t performTimes) in HksEncryptRun() 64 const struct HksBlob *cipherText, struct HksBlob *plainText, uint32_t performTimes) in HksDecryptRun()
|
| /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
|
| D | hks_test_api_performance.c | 42 const struct HksBlob *plainText, struct HksBlob *cipherText, uint32_t performTimes) in HksEncryptRun() 65 const struct HksBlob *cipherText, struct HksBlob *plainText, uint32_t performTimes) in HksDecryptRun()
|
| /base/security/huks/services/huks_standard/huks_service/main/os_dependency/idl/passthrough/ |
| D | huks_access.c | 194 const struct HksBlob *plainText, struct HksBlob *cipherText)) in ENABLE_CFI() 205 const struct HksBlob *cipherText, struct HksBlob *plainText)) in ENABLE_CFI()
|
| /base/security/huks/services/huks_standard/huks_engine/main/core/src/ |
| D | hks_core_interfaces.c | 122 const struct HksBlob *plainText, struct HksBlob *cipherText) in HuksHdiEncrypt() 128 const struct HksBlob *cipherText, struct HksBlob *plainText) in HuksHdiDecrypt()
|