| /base/security/crypto_framework/test/unittest/src/aes_cipher/ |
| 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 …]
|
| 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 375 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable 428 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable 507 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable 549 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable [all …]
|
| 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 …]
|
| 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 …]
|
| 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
|
| 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
|
| 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
|
| /base/security/crypto_framework/test/unittest/src/ |
| 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 …]
|
| 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_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 403 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable 445 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable 489 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable 532 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable [all …]
|
| D | crypto_sm4_cipher_test.cpp | 49 uint8_t cipherText[128] = {0}; variable 97 uint8_t cipherText[128] = {0}; variable 144 uint8_t cipherText[128] = {0}; variable 190 uint8_t cipherText[128] = {0}; variable 239 uint8_t cipherText[128] = {0}; variable 285 uint8_t cipherText[128] = {0}; variable 333 uint8_t cipherText[128] = {0}; variable 381 uint8_t cipherText[128] = {0}; variable 428 uint8_t cipherText[128] = {0}; variable 475 uint8_t cipherText[128] = {0}; variable [all …]
|
| 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
|
| 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()
|
| /base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/src/ |
| D | hks_mbedtls_aes.c | 100 const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in AesCbcNoPaddingCrypt() 191 const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in AesCbcNoPaddingCryptUpdate() 241 const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in AesCbcNoPaddingCryptFinal() 293 const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in AesCbcPkcs7Crypt() 417 … AesCbcPkcs7CryptUpdate(void *cryptoCtx, const struct HksBlob *message, struct HksBlob *cipherText) in AesCbcPkcs7CryptUpdate() 436 struct HksBlob *cipherText) in AesCbcPkcs7CryptFinal() 484 const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in AesCbcCrypt() 522 const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in AesCbcCryptUpdate() 540 const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in AesCbcCryptFinal() 560 const struct HksBlob *message, struct HksBlob *cipherText, struct HksBlob *tagAead) in AesEncryptGcm() [all …]
|
| D | hks_mbedtls_des.c | 154 void *cryptoCtx, const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in DesCbcNoPaddingCryptUpdate() 200 void **cryptoCtx, const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in DesCbcNoPaddingCryptFinal() 265 struct HksBlob *cipherText, const bool encrypt) in DesCbcCryptUpdate() 279 struct HksBlob *cipherText, const bool encrypt) in DesCbcCryptFinal() 365 const struct HksBlob *message, struct HksBlob *cipherText, size_t *outLenTotal) in DesEcbNoPaddingData() 408 struct HksBlob *cipherText, size_t *outLenTotal) in GetDesEcbNoPaddingCtx() 443 struct HksBlob *cipherText) in DesEcbNoPaddingCryptUpdate() 453 struct HksBlob *cipherText) in DesEcbNoPaddingCryptFinal() 498 struct HksBlob *cipherText) in DesEcbCryptUpdate() 512 struct HksBlob *cipherText) in DesEcbCryptFinal() [all …]
|
| D | hks_mbedtls_3des.c | 165 void *cryptoCtx, const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in Des3CbcNoPaddingCryptUpdate() 211 void **cryptoCtx, const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in Des3CbcNoPaddingCryptFinal() 276 struct HksBlob *cipherText, const bool encrypt) in Des3CbcCryptUpdate() 290 struct HksBlob *cipherText, const bool encrypt) in Des3CbcCryptFinal() 380 const struct HksBlob *message, struct HksBlob *cipherText, size_t *outLenTotal) in Des3EcbNoPaddingData() 423 struct HksBlob *cipherText, size_t *outLenTotal) in Get3DesEcbNoPaddingCtx() 458 struct HksBlob *cipherText) in Des3EcbNoPaddingCryptUpdate() 468 struct HksBlob *cipherText) in Des3EcbNoPaddingCryptFinal() 512 struct HksBlob *cipherText) in Des3EcbCryptUpdate() 526 struct HksBlob *cipherText) in Des3EcbCryptFinal() [all …]
|
| /base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/ |
| D | hks_derive_main_key_part3_test.cpp | 76 struct HksBlob cipherText = { AES_COMMON_SIZE, cipher }; variable 124 struct HksBlob cipherText = { AES_COMMON_SIZE, cipher }; variable 172 struct HksBlob cipherText = { AES_COMMON_SIZE, cipher }; variable 212 struct HksBlob cipherText = { AES_COMMON_SIZE, g_cipher }; variable 251 struct HksBlob cipherText = { AES_COMMON_SIZE, g_cipher }; variable 290 struct HksBlob cipherText = { AES_COMMON_SIZE, g_cipher }; variable
|
| 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
|
| /base/security/crypto_framework/test/fuzztest/crypto_operation/hcfciphercreate_fuzzer/ |
| D | hcfciphercreate_fuzzer.cpp | 34 uint8_t **cipherText, int *cipherTextLen) in AesEncrypt() 75 …32_t AesDecrypt(HcfCipher *cipher, HcfSymKey *key, HcfBlob *input, uint8_t *cipherText, int cipher… in AesDecrypt() 127 uint8_t **cipherText, int *cipherTextLen) in Sm4Encrypt() 170 uint8_t *cipherText, int cipherTextLen) in Sm4Decrypt() 232 uint8_t *cipherText = nullptr; in TestAesCipher() local 264 uint8_t *cipherText = nullptr; in TestSm4Cipher() local 300 uint8_t *cipherText = nullptr; in TestSm4GcmCipher() local
|
| /base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/ |
| D | hks_openssl_3des.c | 93 struct HksBlob *cipherText, const bool encrypt) in Des3CryptUpdate() 107 struct HksBlob *cipherText, const bool encrypt) in Des3CryptFinal() 143 …Openssl3DesCryptoUpdate(void *cryptoCtx, const struct HksBlob *message, struct HksBlob *cipherText, in HksOpenssl3DesCryptoUpdate() 164 …Openssl3DesCryptoFinal(void **cryptoCtx, const struct HksBlob *message, struct HksBlob *cipherText, in HksOpenssl3DesCryptoFinal()
|
| D | hks_openssl_des.c | 194 struct HksBlob *cipherText) in DesNoPaddingCryptUpdate() 219 struct HksBlob *cipherText) in DesNoPaddingCryptFinal() 278 struct HksBlob *cipherText, const bool encrypt) in DesCryptUpdate() 292 struct HksBlob *cipherText, const bool encrypt) in DesCryptFinal() 328 …sOpensslDesCryptoUpdate(void *cryptoCtx, const struct HksBlob *message, struct HksBlob *cipherText, in HksOpensslDesCryptoUpdate() 349 …sOpensslDesCryptoFinal(void **cryptoCtx, const struct HksBlob *message, struct HksBlob *cipherText, in HksOpensslDesCryptoFinal()
|
| /base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/symmetric_alg_test/ |
| 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()
|
| /base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/asymmetric_alg_test/ |
| 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
|
| 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
|
| /base/security/crypto_framework/test/unittest/src/native/ |
| 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
|