/ohos5.0/base/security/crypto_framework/test/unittest/src/aes_cipher/ |
H A D | crypto_aes_cfb_cipher_test.cpp | 49 uint8_t cipherText[128] = {0}; variable 100 uint8_t cipherText[128] = {0}; variable 151 uint8_t cipherText[128] = {0}; variable 203 uint8_t cipherText[128] = {0}; variable 254 uint8_t cipherText[128] = {0}; variable 305 uint8_t cipherText[128] = {0}; variable 355 uint8_t cipherText[128] = {0}; variable 405 uint8_t cipherText[128] = {0}; variable 455 uint8_t cipherText[128] = {0}; variable 505 uint8_t cipherText[128] = {0}; variable [all …]
|
H A D | crypto_aes_gcm_cipher_test.cpp | 51 uint8_t cipherText[128] = {0}; variable 105 uint8_t cipherText[128] = {0}; variable 159 uint8_t cipherText[128] = {0}; variable 213 uint8_t cipherText[128] = {0}; variable 267 uint8_t cipherText[128] = {0}; variable 321 uint8_t cipherText[128] = {0}; variable 678 uint8_t cipherText[CIPHER_TEXT_LEN] = {0}; variable 732 uint8_t cipherText[CIPHER_TEXT_LEN] = {0}; variable 786 uint8_t cipherText[CIPHER_TEXT_LEN] = {0}; variable 948 uint8_t cipherText[128] = {0}; variable [all …]
|
H A D | crypto_aes_ecb_cipher_test.cpp | 54 uint8_t cipherText[128] = {0}; variable 106 uint8_t cipherText[128] = {0}; variable 151 uint8_t cipherText[128] = {0}; variable 197 uint8_t cipherText[128] = {0}; variable 246 uint8_t cipherText[128] = {0}; variable 292 uint8_t cipherText[128] = {0}; variable 337 uint8_t cipherText[128] = {0}; variable 383 uint8_t cipherText[128] = {0}; variable 478 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable 514 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable [all …]
|
H A D | crypto_aes_ccm_cipher_test.cpp | 51 uint8_t cipherText[128] = {0}; variable 104 uint8_t cipherText[128] = {0}; variable 157 uint8_t cipherText[128] = {0}; variable 210 uint8_t cipherText[128] = {0}; variable 263 uint8_t cipherText[128] = {0}; variable 317 uint8_t cipherText[128] = {0}; variable 370 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable 422 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable 471 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable 506 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable [all …]
|
H A D | crypto_aes_cbc_cipher_test.cpp | 49 uint8_t cipherText[128] = {0}; variable 100 uint8_t cipherText[128] = {0}; variable 151 uint8_t cipherText[128] = {0}; variable 202 uint8_t cipherText[128] = {0}; variable 253 uint8_t cipherText[128] = {0}; variable 304 uint8_t cipherText[128] = {0}; variable 407 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable 449 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable
|
H A D | crypto_aes_ctr_cipher_test.cpp | 49 uint8_t cipherText[128] = {0}; variable 100 uint8_t cipherText[128] = {0}; variable 151 uint8_t cipherText[128] = {0}; variable 202 uint8_t cipherText[128] = {0}; variable 253 uint8_t cipherText[128] = {0}; variable 304 uint8_t cipherText[128] = {0}; variable 406 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable 448 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable
|
H A D | crypto_aes_ofb_cipher_test.cpp | 49 uint8_t cipherText[128] = {0}; variable 100 uint8_t cipherText[128] = {0}; variable 151 uint8_t cipherText[128] = {0}; variable 201 uint8_t cipherText[128] = {0}; variable 252 uint8_t cipherText[128] = {0}; variable 303 uint8_t cipherText[128] = {0}; variable 404 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable 446 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable
|
H A D | aes_common.cpp | 258 uint8_t *cipherText, int *cipherTextLen) in AesEncryptWithInput() 301 uint8_t *cipherText, int *cipherTextLen) in AesEncrypt() 346 uint8_t *cipherText, int cipherTextLen) in AesDecrypt() 394 uint8_t *cipherText, int *cipherTextLen) in AesNoUpdateEncWithInput() 425 uint8_t *cipherText, int cipherTextLen) in AesDecryptEmptyMsg() 450 uint8_t *cipherText, int *cipherTextLen) in AesNoUpdateEncrypt() 482 uint8_t *cipherText, int cipherTextLen) in AesNoUpdateDecrypt()
|
/ohos5.0/base/security/crypto_framework/test/unittest/src/ |
H A D | crypto_sm4_cfb_cipher_test.cpp | 49 uint8_t cipherText[128] = {0}; variable 97 uint8_t cipherText[128] = {0}; variable 145 uint8_t cipherText[128] = {0}; variable 193 uint8_t cipherText[128] = {0}; variable 241 uint8_t cipherText[128] = {0}; variable 289 uint8_t cipherText[128] = {0}; variable 337 uint8_t cipherText[128] = {0}; variable 384 uint8_t cipherText[128] = {0}; variable 432 uint8_t cipherText[128] = {0}; variable 480 uint8_t cipherText[128] = {0}; variable [all …]
|
H A D | crypto_3des_cipher_test.cpp | 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 524 uint8_t cipherText[128] = {0}; variable 576 uint8_t cipherText[128] = {0}; variable 626 uint8_t cipherText[128] = {0}; variable 678 uint8_t cipherText[128] = {0}; variable [all …]
|
H A D | crypto_sm4_gcm_cipher_test.cpp | 53 uint8_t cipherText[128] = {0}; variable 107 uint8_t cipherText[128] = {0}; variable 161 uint8_t cipherText[128] = {0}; variable 215 uint8_t cipherText[128] = {0}; variable 269 uint8_t cipherText[128] = {0}; variable 323 uint8_t cipherText[128] = {0}; variable 574 uint8_t cipherText[CIPHER_TEXT_LEN] = {0}; variable 628 uint8_t cipherText[CIPHER_TEXT_LEN] = {0}; variable 682 uint8_t cipherText[CIPHER_TEXT_LEN] = {0}; variable 844 uint8_t cipherText[128] = {0}; variable [all …]
|
H A D | crypto_sm4_cipher_test.cpp | 54 uint8_t cipherText[128] = {0}; variable 102 uint8_t cipherText[128] = {0}; variable 149 uint8_t cipherText[128] = {0}; variable 195 uint8_t cipherText[128] = {0}; variable 244 uint8_t cipherText[128] = {0}; variable 290 uint8_t cipherText[128] = {0}; variable 338 uint8_t cipherText[128] = {0}; variable 386 uint8_t cipherText[128] = {0}; variable 433 uint8_t cipherText[128] = {0}; variable 480 uint8_t cipherText[128] = {0}; variable [all …]
|
H A D | crypto_sm4_ecb_cipher_test.cpp | 49 uint8_t cipherText[128] = {0}; variable 96 uint8_t cipherText[128] = {0}; variable 144 uint8_t cipherText[128] = {0}; variable 191 uint8_t cipherText[128] = {0}; variable 238 uint8_t cipherText[128] = {0}; variable 286 uint8_t cipherText[128] = {0}; variable 578 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable 615 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable 722 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable 788 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable
|
H A D | sm4_common.cpp | 74 uint8_t *cipherText, int *cipherTextLen) in Sm4EncryptWithInput() 117 uint8_t *cipherText, int cipherTextLen) in Sm4DecryptEmptyMsg() 143 uint8_t *cipherText, int *cipherTextLen) in Sm4Encrypt() 186 uint8_t *cipherText, int cipherTextLen) in Sm4Decrypt() 233 uint8_t *cipherText, int *cipherTextLen) in Sm4NoUpdateEncrypt() 263 uint8_t *cipherText, int cipherTextLen) in Sm4NoUpdateDecrypt()
|
/ohos5.0/base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/src/ |
H A D | hks_mbedtls_aes.c | 416 struct HksBlob *cipherText) in AesCbcPkcs7CryptFinal() 626 struct HksBlob *cipherText, bool isEncrypt) in MbedtlsGcmUpdate() 669 struct HksBlob *cipherText) in AesEncryptGcmUpdate() 717 const struct HksBlob *message, struct HksBlob *cipherText) in AesDecryptGcm() 801 const struct HksBlob *message, struct HksBlob *cipherText) in AesDecryptGcmUpdate() 1295 struct HksBlob *cipherText, size_t *olenTotal) in GetAesEcbNoPaddingCtx() 1330 struct HksBlob *cipherText) in AesEcbNoPaddingCryptUpdate() 1340 struct HksBlob *cipherText) in AesEcbNoPaddingCryptFinal() 1403 struct HksBlob *cipherText) in AesEcbCryptUpdate() 1419 struct HksBlob *cipherText) in AesEcbCryptFinal() [all …]
|
/ohos5.0/base/security/crypto_framework/test/fuzztest/crypto_operation/hcfciphercreate_fuzzer/ |
H A D | hcfciphercreate_fuzzer.cpp | 33 uint8_t *cipherText, int *cipherTextLen) in AesEncrypt() 70 uint8_t *cipherText, int cipherTextLen) in AesDecrypt() 114 uint8_t *cipherText, int *cipherTextLen) in Sm4Encrypt() 152 uint8_t *cipherText, int cipherTextLen) in Sm4Decrypt() 200 uint8_t cipherText[128] = {0}; in TestAesCipher() local 232 uint8_t cipherText[128] = {0}; in TestSm4Cipher() local 267 uint8_t cipherText[128] = {0}; in TestSm4GcmCipher() local
|
/ohos5.0/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/asymmetric_alg_test/ |
H A D | hks_rsa_cipher_test_common.cpp | 22 …onst struct HksParamSet *encryptParamSet, const struct HksBlob *inData, struct HksBlob *cipherText) in HksRsaCipherTestEncryptAbnormal() 54 …onst struct HksParamSet *encryptParamSet, const struct HksBlob *inData, struct HksBlob *cipherText) in HksRsaCipherTestEncrypt() 83 …const struct HksParamSet *decryptParamSet, const struct HksBlob *cipherText, struct HksBlob *plain… in HksRsaCipherTestDecrypt() 132 struct HksBlob cipherText = { Unittest::RsaCipher::RSA_COMMON_SIZE, cipher }; in HksRsaCipherTestCase() local 168 struct HksBlob cipherText = { Unittest::RsaCipher::RSA_COMMON_SIZE, cipher }; in HksRsaCipherTestCaseAbnormal() local
|
H A D | hks_sm2_cipher_test.cpp | 360 …onst struct HksParamSet *encryptParamSet, const struct HksBlob *inData, struct HksBlob *cipherText) in HksSm2CipherTestEncrypt() 388 const struct HksBlob *cipherText, struct HksBlob *plainText, const struct HksBlob *inData) in HksSm2CipherTestDecrypt() 425 const struct HksBlob *inData, struct HksBlob *cipherText) in HksSm2CipherTestRun() 491 struct HksBlob cipherText = { SM2_COMMON_SIZE, cipher }; variable 515 struct HksBlob cipherText; variable 557 struct HksBlob cipherText = { SM2_COMMON_SIZE, cipher }; variable 577 struct HksBlob cipherText = { SM2_COMMON_SIZE, cipher }; variable 586 …t HksParamSet *encryptParamSet, const struct OH_Huks_Blob *inData, struct OH_Huks_Blob *cipherText) in HksSm2CipherTestEncryptByNdk() 606 const struct OH_Huks_ParamSet *decryptParamSet, const struct OH_Huks_Blob *cipherText, in HksSm2CipherTestDecryptByNdk() 660 struct OH_Huks_Blob cipherText = { SM2_COMMON_SIZE, cipher }; in HksSm2CipherTestRunByNdk() local
|
/ohos5.0/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/ |
H A D | hks_sm4_cipher_test_common.cpp | 25 …onst struct HksParamSet *encryptParamSet, const struct HksBlob *inData, struct HksBlob *cipherText) in HksSm4CipherTestEncrypt() 46 …const struct HksParamSet *decryptParamSet, const struct HksBlob *cipherText, struct HksBlob *plain… in HksSm4CipherTestDecrypt() 91 struct HksBlob cipherText = { SM4_COMMON_SIZE, cipher }; in HksSm4CipherTestCaseOther() local 131 struct HksBlob cipherText = { SM4_COMMON_SIZE, cipher }; in HksSm4CipherTestCaseGcm() local
|
/ohos5.0/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/symmetric_alg_test/ |
H A D | hks_aes_cipher_test_common.cpp | 30 …onst struct HksParamSet *encryptParamSet, const struct HksBlob *inData, struct HksBlob *cipherText) in HksAesCipherTestEncrypt() 60 struct HksParamSet *encryptParamSet, const struct HksBlob *inData, struct HksBlob *cipherText, in HksAesCipherTestEncryptWithoutNonce() 100 …const struct HksParamSet *decryptParamSet, const struct HksBlob *cipherText, struct HksBlob *plain… in HksAesCipherTestDecrypt() 176 struct HksBlob cipherText = { AES_COMMON_SIZE, cipher }; in HksAesCipherTestCaseOther() local 208 struct HksBlob cipherText = { AES_COMMON_SIZE, cipher }; in HksAesCipherTestCaseGcm2() local 266 struct HksBlob cipherText = { AES_COMMON_SIZE, cipher }; in HksAesCipherTestCaseGcm3() local 312 static void HksAesGcmAppendAeadAndNonce(struct HksParamSet *paramSet, struct HksBlob *cipherText) in HksAesGcmAppendAeadAndNonce() 352 struct HksBlob cipherText = { AES_COMMON_SIZE, cipher }; in HksAesCipherTestCaseGcm4() local 398 const struct HksBlob *inData, struct HksBlob *cipherText) in HksAesEncryptThreeStage() 406 const struct HksBlob *inData, struct HksBlob *cipherText, struct HksBlob *plainText) in HksAesDecryptThreeStage()
|
H A D | hks_aes_cipher_ccm_test.cpp | 526 struct HksBlob cipherText = { AEAD_SIZE + dataLen + IV_SIZE, cipher }; in TestAesCcmAbort() local 701 struct HksBlob cipherText = { AEAD_SIZE + dataLen + IV_SIZE, cipher }; in HksAesCmcCipherTestCaseRun() local 946 struct HksBlob cipherText = { sizeof(outData), outData }; variable 1005 struct HksBlob cipherText = { sizeof(outData), outData }; variable 1371 struct HksBlob cipherText = {tempLen, tempData }; variable 1529 struct HksBlob cipherText = {0, nullptr}; variable 1587 struct HksBlob cipherText = {0, nullptr}; variable 1656 struct HksBlob cipherText = {0, nullptr}; variable 1724 struct HksBlob cipherText = {0, nullptr}; variable 1786 struct HksBlob cipherText = {0, nullptr}; variable [all …]
|
/ohos5.0/base/security/crypto_framework/test/unittest/src/native/ |
H A D | native_sym_cipher_test.cpp | 53 uint8_t *cipherText, int *cipherTextLen) in AesEncrypt() 97 uint8_t *cipherText, int cipherTextLen) in AesDecrypt() 151 uint8_t cipherText[128] = {0}; variable
|
/ohos5.0/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/ |
H A D | hks_openssl_sm4.c | 104 …OpensslSm4EncryptUpdate(void *cryptoCtx, const struct HksBlob *message, struct HksBlob *cipherText) in HksOpensslSm4EncryptUpdate() 135 …OpensslSm4EncryptFinal(void **cryptoCtx, const struct HksBlob *message, struct HksBlob *cipherText, in HksOpensslSm4EncryptFinal() 222 …OpensslSm4DecryptFinal(void **cryptoCtx, const struct HksBlob *message, struct HksBlob *cipherText, in HksOpensslSm4DecryptFinal() 285 const struct HksBlob *message, struct HksBlob *cipherText) in HksOpensslSm4Encrypt()
|
/ohos5.0/base/notification/distributed_notification_service/services/ans/src/common/ |
H A D | aes_gcm_helper.cpp | 132 ErrCode AesGcmHelper::Encrypt(const std::string &plainText, std::string &cipherText) in Encrypt() 152 ErrCode AesGcmHelper::Decrypt(std::string &plainText, const std::string &cipherText) in Decrypt() 172 bool AesGcmHelper::EncryptAesGcm(const std::string &plainText, std::string &cipherText, std::string… in EncryptAesGcm() 222 bool AesGcmHelper::DecryptAesGcm(std::string &plainText, const std::string &cipherText, std::string… in DecryptAesGcm()
|
/ohos5.0/base/security/huks/test/unittest/huks_standard_test/crypto_engine_test/src/ |
H A D | hks_crypto_hal_api_mbedtls.cpp | 166 HksBlob cipherText = { .size = 0, .data = nullptr }; variable 201 HksBlob cipherText = { .size = 1, .data = buff }; variable 225 HksBlob cipherText = { .size = 1, .data = buff }; variable 248 HksBlob cipherText = { .size = 1, .data = buff }; variable 273 HksBlob cipherText = { .size = 1, .data = buff }; variable 295 HksBlob cipherText = { .size = 1, .data = buff }; variable
|