| /base/security/crypto_framework/test/unittest/src/aes_cipher/ |
| D | crypto_aes_cfb_cipher_test.cpp | 48 uint8_t cipherText[128] = {0}; variable 81 uint8_t cipherText[128] = {0}; variable 114 uint8_t cipherText[128] = {0}; variable 147 uint8_t cipherText[128] = {0}; variable 180 uint8_t cipherText[128] = {0}; variable 213 uint8_t cipherText[128] = {0}; variable 246 uint8_t cipherText[128] = {0}; variable 279 uint8_t cipherText[128] = {0}; variable 312 uint8_t cipherText[128] = {0}; variable 345 uint8_t cipherText[128] = {0}; variable [all …]
|
| D | crypto_aes_gcm_cipher_test.cpp | 50 uint8_t cipherText[128] = {0}; variable 89 uint8_t cipherText[128] = {0}; variable 128 uint8_t cipherText[128] = {0}; variable 167 uint8_t cipherText[128] = {0}; variable 206 uint8_t cipherText[128] = {0}; variable 245 uint8_t cipherText[128] = {0}; variable 284 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable 323 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable 388 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable 414 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable [all …]
|
| D | crypto_aes_ecb_cipher_test.cpp | 53 uint8_t cipherText[128] = {0}; variable 88 uint8_t cipherText[128] = {0}; variable 117 uint8_t cipherText[128] = {0}; variable 145 uint8_t cipherText[128] = {0}; variable 176 uint8_t cipherText[128] = {0}; variable 205 uint8_t cipherText[128] = {0}; variable 234 uint8_t cipherText[128] = {0}; variable 263 uint8_t cipherText[128] = {0}; variable 321 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable 344 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable [all …]
|
| D | crypto_aes_ccm_cipher_test.cpp | 51 uint8_t cipherText[128] = {0}; variable 90 uint8_t cipherText[128] = {0}; variable 129 uint8_t cipherText[128] = {0}; variable 168 uint8_t cipherText[128] = {0}; variable 207 uint8_t cipherText[128] = {0}; variable 246 uint8_t cipherText[128] = {0}; variable 285 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable 324 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable 360 uint8_t cipherText[CIPHER_TEXT_LEN] = {0}; variable 385 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable [all …]
|
| D | crypto_aes_cbc_cipher_test.cpp | 49 uint8_t cipherText[128] = {0}; variable 80 uint8_t cipherText[128] = {0}; variable 114 uint8_t cipherText[128] = {0}; variable 148 uint8_t cipherText[128] = {0}; variable 179 uint8_t cipherText[128] = {0}; variable 213 uint8_t cipherText[128] = {0}; variable 280 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable 309 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable
|
| D | crypto_aes_ofb_cipher_test.cpp | 48 uint8_t cipherText[128] = {0}; variable 81 uint8_t cipherText[128] = {0}; variable 114 uint8_t cipherText[128] = {0}; variable 147 uint8_t cipherText[128] = {0}; variable 180 uint8_t cipherText[128] = {0}; variable 213 uint8_t cipherText[128] = {0}; variable 278 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable 306 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable
|
| D | crypto_aes_ctr_cipher_test.cpp | 48 uint8_t cipherText[128] = {0}; variable 81 uint8_t cipherText[128] = {0}; variable 114 uint8_t cipherText[128] = {0}; variable 147 uint8_t cipherText[128] = {0}; variable 180 uint8_t cipherText[128] = {0}; variable 213 uint8_t cipherText[128] = {0}; variable 278 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable 306 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 79 uint8_t cipherText[128] = {0}; variable 109 uint8_t cipherText[128] = {0}; variable 139 uint8_t cipherText[128] = {0}; variable 169 uint8_t cipherText[128] = {0}; variable 199 uint8_t cipherText[128] = {0}; variable 229 uint8_t cipherText[128] = {0}; variable 259 uint8_t cipherText[128] = {0}; variable 289 uint8_t cipherText[128] = {0}; variable 319 uint8_t cipherText[128] = {0}; variable [all …]
|
| D | crypto_sm4_gcm_cipher_test.cpp | 53 uint8_t cipherText[128] = {0}; variable 93 uint8_t cipherText[128] = {0}; variable 133 uint8_t cipherText[128] = {0}; variable 173 uint8_t cipherText[128] = {0}; variable 213 uint8_t cipherText[128] = {0}; variable 253 uint8_t cipherText[128] = {0}; variable 319 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable 348 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable 381 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable 414 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable [all …]
|
| D | crypto_3des_cipher_test.cpp | 92 uint8_t *cipherText, int *cipherTextLen) in DesEncrypt() 135 uint8_t *cipherText, int cipherTextLen) in DesDecrypt() 182 uint8_t *cipherText, int *cipherTextLen) in DesNoUpdateEncrypt() 212 uint8_t *cipherText, int cipherTextLen) in DesNoUpdateDecrypt() 247 uint8_t cipherText[128] = {0}; variable 273 uint8_t cipherText[128] = {0}; variable 302 uint8_t cipherText[128] = {0}; variable 331 uint8_t cipherText[128] = {0}; variable 361 uint8_t cipherText[128] = {0}; variable 394 uint8_t cipherText[128] = {0}; variable [all …]
|
| D | crypto_sm4_cipher_test.cpp | 48 uint8_t cipherText[128] = {0}; variable 74 uint8_t cipherText[128] = {0}; variable 103 uint8_t cipherText[128] = {0}; variable 132 uint8_t cipherText[128] = {0}; variable 161 uint8_t cipherText[128] = {0}; variable 190 uint8_t cipherText[128] = {0}; variable 219 uint8_t cipherText[128] = {0}; variable 248 uint8_t cipherText[128] = {0}; variable 277 uint8_t cipherText[128] = {0}; variable 306 uint8_t cipherText[128] = {0}; variable [all …]
|
| D | crypto_sm4_ecb_cipher_test.cpp | 48 uint8_t cipherText[128] = {0}; variable 74 uint8_t cipherText[128] = {0}; variable 103 uint8_t cipherText[128] = {0}; variable 132 uint8_t cipherText[128] = {0}; variable 158 uint8_t cipherText[128] = {0}; variable 187 uint8_t cipherText[128] = {0}; variable 383 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable 407 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable 474 uint8_t cipherText[CIPHER_TEXT_LEN] = { 0 }; variable 518 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 | 101 const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in AesCbcNoPaddingCrypt() 192 const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in AesCbcNoPaddingCryptUpdate() 242 const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in AesCbcNoPaddingCryptFinal() 294 const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in AesCbcPkcs7Crypt() 418 … AesCbcPkcs7CryptUpdate(void *cryptoCtx, const struct HksBlob *message, struct HksBlob *cipherText) in AesCbcPkcs7CryptUpdate() 437 struct HksBlob *cipherText) in AesCbcPkcs7CryptFinal() 485 const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in AesCbcCrypt() 523 const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in AesCbcCryptUpdate() 541 const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in AesCbcCryptFinal() 561 const struct HksBlob *message, struct HksBlob *cipherText, struct HksBlob *tagAead) in AesEncryptGcm() [all …]
|
| D | hks_mbedtls_des.c | 155 void *cryptoCtx, const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in DesCbcNoPaddingCryptUpdate() 201 void **cryptoCtx, const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in DesCbcNoPaddingCryptFinal() 266 struct HksBlob *cipherText, const bool encrypt) in DesCbcCryptUpdate() 280 struct HksBlob *cipherText, const bool encrypt) in DesCbcCryptFinal() 366 const struct HksBlob *message, struct HksBlob *cipherText, size_t *outLenTotal) in DesEcbNoPaddingData() 409 struct HksBlob *cipherText, size_t *outLenTotal) in GetDesEcbNoPaddingCtx() 444 struct HksBlob *cipherText) in DesEcbNoPaddingCryptUpdate() 454 struct HksBlob *cipherText) in DesEcbNoPaddingCryptFinal() 499 struct HksBlob *cipherText) in DesEcbCryptUpdate() 513 struct HksBlob *cipherText) in DesEcbCryptFinal() [all …]
|
| D | hks_mbedtls_3des.c | 166 void *cryptoCtx, const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in Des3CbcNoPaddingCryptUpdate() 212 void **cryptoCtx, const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in Des3CbcNoPaddingCryptFinal() 277 struct HksBlob *cipherText, const bool encrypt) in Des3CbcCryptUpdate() 291 struct HksBlob *cipherText, const bool encrypt) in Des3CbcCryptFinal() 381 const struct HksBlob *message, struct HksBlob *cipherText, size_t *outLenTotal) in Des3EcbNoPaddingData() 424 struct HksBlob *cipherText, size_t *outLenTotal) in Get3DesEcbNoPaddingCtx() 459 struct HksBlob *cipherText) in Des3EcbNoPaddingCryptUpdate() 469 struct HksBlob *cipherText) in Des3EcbNoPaddingCryptFinal() 513 struct HksBlob *cipherText) in Des3EcbCryptUpdate() 527 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 | 90 struct HksBlob *cipherText, const bool encrypt) in Des3CryptUpdate() 104 struct HksBlob *cipherText, const bool encrypt) in Des3CryptFinal() 138 …Openssl3DesCryptoUpdate(void *cryptoCtx, const struct HksBlob *message, struct HksBlob *cipherText, in HksOpenssl3DesCryptoUpdate() 159 …Openssl3DesCryptoFinal(void **cryptoCtx, const struct HksBlob *message, struct HksBlob *cipherText, in HksOpenssl3DesCryptoFinal()
|
| D | hks_openssl_des.c | 180 struct HksBlob *cipherText) in DesNoPaddingCryptUpdate() 203 struct HksBlob *cipherText) in DesNoPaddingCryptFinal() 260 struct HksBlob *cipherText, const bool encrypt) in DesCryptUpdate() 274 struct HksBlob *cipherText, const bool encrypt) in DesCryptFinal() 308 …sOpensslDesCryptoUpdate(void *cryptoCtx, const struct HksBlob *message, struct HksBlob *cipherText, in HksOpensslDesCryptoUpdate() 329 …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
|