Home
last modified time | relevance | path

Searched defs:cipher (Results 1 – 25 of 86) sorted by relevance

1234

/base/security/crypto_framework/test/unittest/src/
Dcrypto_sm2_cipher_test.cpp80 HcfCipher *cipher = nullptr; variable
104 HcfCipher *cipher = nullptr; variable
113 HcfCipher *cipher = nullptr; variable
123 HcfCipher *cipher = nullptr; variable
132 HcfCipher *cipher = nullptr; variable
148 HcfCipher *cipher = nullptr; variable
169 HcfCipher *cipher = nullptr; variable
190 HcfCipher *cipher = nullptr; variable
212 HcfCipher *cipher = nullptr; variable
233 HcfCipher *cipher = nullptr; variable
[all …]
Dcrypto_rsa_cipher_test.cpp149 static HcfResult RsaCipherSpec(HcfCipher *cipher) in RsaCipherSpec()
182 static HcfResult RsaSpecpSource(HcfCipher *cipher, uint8_t *pSourceData, HcfBlob pSource) in RsaSpecpSource()
214 HcfCipher *cipher = nullptr; variable
232 HcfCipher *cipher = nullptr; variable
247 HcfCipher *cipher = nullptr; variable
262 HcfCipher *cipher = nullptr; variable
277 HcfCipher *cipher = nullptr; variable
292 HcfCipher *cipher = nullptr; variable
307 HcfCipher *cipher = nullptr; variable
322 HcfCipher *cipher = nullptr; variable
[all …]
Dcrypto_sm4_cipher_test.cpp52 HcfCipher *cipher = nullptr; variable
78 HcfCipher *cipher = nullptr; variable
107 HcfCipher *cipher = nullptr; variable
136 HcfCipher *cipher = nullptr; variable
165 HcfCipher *cipher = nullptr; variable
194 HcfCipher *cipher = nullptr; variable
223 HcfCipher *cipher = nullptr; variable
252 HcfCipher *cipher = nullptr; variable
281 HcfCipher *cipher = nullptr; variable
310 HcfCipher *cipher = nullptr; variable
[all …]
Dcrypto_sm4_ecb_cipher_test.cpp52 HcfCipher *cipher = nullptr; variable
78 HcfCipher *cipher = nullptr; variable
107 HcfCipher *cipher = nullptr; variable
136 HcfCipher *cipher = nullptr; variable
162 HcfCipher *cipher = nullptr; variable
191 HcfCipher *cipher = nullptr; variable
216 HcfCipher *cipher = nullptr; variable
234 HcfCipher *cipher = nullptr; variable
252 HcfCipher *cipher = nullptr; variable
280 HcfCipher *cipher = nullptr; variable
[all …]
Dcrypto_sm4_cfb_cipher_test.cpp53 HcfCipher *cipher = nullptr; variable
83 HcfCipher *cipher = nullptr; variable
113 HcfCipher *cipher = nullptr; variable
143 HcfCipher *cipher = nullptr; variable
173 HcfCipher *cipher = nullptr; variable
203 HcfCipher *cipher = nullptr; variable
233 HcfCipher *cipher = nullptr; variable
263 HcfCipher *cipher = nullptr; variable
293 HcfCipher *cipher = nullptr; variable
323 HcfCipher *cipher = nullptr; variable
[all …]
Dcrypto_3des_cipher_test.cpp91 static int32_t DesEncrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in DesEncrypt()
134 static int32_t DesDecrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in DesDecrypt()
181 static int32_t DesNoUpdateEncrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in DesNoUpdateEncrypt()
211 static int32_t DesNoUpdateDecrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in DesNoUpdateDecrypt()
251 HcfCipher *cipher = nullptr; variable
277 HcfCipher *cipher = nullptr; variable
306 HcfCipher *cipher = nullptr; variable
335 HcfCipher *cipher = nullptr; variable
365 HcfCipher *cipher = nullptr; variable
398 HcfCipher *cipher = nullptr; variable
[all …]
Dcrypto_sm4_gcm_cipher_test.cpp56 HcfCipher *cipher = nullptr; variable
96 HcfCipher *cipher = nullptr; variable
136 HcfCipher *cipher = nullptr; variable
176 HcfCipher *cipher = nullptr; variable
216 HcfCipher *cipher = nullptr; variable
256 HcfCipher *cipher = nullptr; variable
290 HcfCipher *cipher = nullptr; variable
304 HcfCipher *cipher = nullptr; variable
321 HcfCipher *cipher = nullptr; variable
351 HcfCipher *cipher = nullptr; variable
[all …]
Dsm4_common.cpp73 int32_t Sm4EncryptWithInput(HcfCipher *cipher, HcfSymKey *key, HcfBlob *input, in Sm4EncryptWithInput()
116 int32_t Sm4DecryptEmptyMsg(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in Sm4DecryptEmptyMsg()
142 int32_t Sm4Encrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in Sm4Encrypt()
185 int32_t Sm4Decrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in Sm4Decrypt()
232 int32_t Sm4NoUpdateEncrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in Sm4NoUpdateEncrypt()
262 int32_t Sm4NoUpdateDecrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in Sm4NoUpdateDecrypt()
Dcrypto_rsa_cipher_sub_test.cpp175 HcfCipher *cipher = nullptr; variable
214 HcfCipher *cipher = nullptr; variable
244 HcfCipher *cipher = nullptr; variable
274 HcfCipher *cipher = nullptr; variable
304 HcfCipher *cipher = nullptr; variable
333 HcfCipher *cipher = nullptr; variable
362 HcfCipher *cipher = nullptr; variable
391 HcfCipher *cipher = nullptr; variable
406 HcfCipher *cipher = nullptr; variable
417 HcfCipher *cipher = nullptr; variable
/base/security/crypto_framework/test/unittest/src/aes_cipher/
Dcrypto_aes_ecb_cipher_test.cpp57 HcfCipher *cipher = nullptr; variable
92 HcfCipher *cipher = nullptr; variable
121 HcfCipher *cipher = nullptr; variable
148 HcfCipher *cipher = nullptr; variable
180 HcfCipher *cipher = nullptr; variable
209 HcfCipher *cipher = nullptr; variable
238 HcfCipher *cipher = nullptr; variable
266 HcfCipher *cipher = nullptr; variable
294 HcfCipher *cipher = nullptr; variable
323 HcfCipher *cipher = nullptr; variable
[all …]
Dcrypto_aes_cfb_cipher_test.cpp53 HcfCipher *cipher = nullptr; variable
86 HcfCipher *cipher = nullptr; variable
119 HcfCipher *cipher = nullptr; variable
152 HcfCipher *cipher = nullptr; variable
185 HcfCipher *cipher = nullptr; variable
218 HcfCipher *cipher = nullptr; variable
251 HcfCipher *cipher = nullptr; variable
284 HcfCipher *cipher = nullptr; variable
317 HcfCipher *cipher = nullptr; variable
350 HcfCipher *cipher = nullptr; variable
[all …]
Dcrypto_aes_gcm_cipher_test.cpp53 HcfCipher *cipher = nullptr; variable
92 HcfCipher *cipher = nullptr; variable
131 HcfCipher *cipher = nullptr; variable
170 HcfCipher *cipher = nullptr; variable
209 HcfCipher *cipher = nullptr; variable
248 HcfCipher *cipher = nullptr; variable
287 HcfCipher *cipher = nullptr; variable
326 HcfCipher *cipher = nullptr; variable
360 HcfCipher *cipher = nullptr; variable
374 HcfCipher *cipher = nullptr; variable
[all …]
Dcrypto_aes_ccm_cipher_test.cpp54 HcfCipher *cipher = nullptr; variable
93 HcfCipher *cipher = nullptr; variable
132 HcfCipher *cipher = nullptr; variable
171 HcfCipher *cipher = nullptr; variable
210 HcfCipher *cipher = nullptr; variable
249 HcfCipher *cipher = nullptr; variable
288 HcfCipher *cipher = nullptr; variable
327 HcfCipher *cipher = nullptr; variable
363 HcfCipher *cipher = nullptr; variable
388 HcfCipher *cipher = nullptr; variable
[all …]
Dcrypto_aes_cbc_cipher_test.cpp54 HcfCipher *cipher = nullptr; variable
85 HcfCipher *cipher = nullptr; variable
119 HcfCipher *cipher = nullptr; variable
153 HcfCipher *cipher = nullptr; variable
184 HcfCipher *cipher = nullptr; variable
218 HcfCipher *cipher = nullptr; variable
251 HcfCipher *cipher = nullptr; variable
284 HcfCipher *cipher = nullptr; variable
313 HcfCipher *cipher = nullptr; variable
Dcrypto_aes_ofb_cipher_test.cpp53 HcfCipher *cipher = nullptr; variable
86 HcfCipher *cipher = nullptr; variable
119 HcfCipher *cipher = nullptr; variable
152 HcfCipher *cipher = nullptr; variable
185 HcfCipher *cipher = nullptr; variable
218 HcfCipher *cipher = nullptr; variable
248 HcfCipher *cipher = nullptr; variable
282 HcfCipher *cipher = nullptr; variable
310 HcfCipher *cipher = nullptr; variable
Dcrypto_aes_ctr_cipher_test.cpp53 HcfCipher *cipher = nullptr; variable
86 HcfCipher *cipher = nullptr; variable
119 HcfCipher *cipher = nullptr; variable
152 HcfCipher *cipher = nullptr; variable
185 HcfCipher *cipher = nullptr; variable
218 HcfCipher *cipher = nullptr; variable
248 HcfCipher *cipher = nullptr; variable
282 HcfCipher *cipher = nullptr; variable
310 HcfCipher *cipher = nullptr; variable
Daes_common.cpp148 int32_t AesMultiBlockEncrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params) in AesMultiBlockEncrypt()
202 int32_t AesMultiBlockDecrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params) in AesMultiBlockDecrypt()
257 int32_t AesEncryptWithInput(HcfCipher *cipher, HcfSymKey *key, HcfBlob *input, in AesEncryptWithInput()
300 int32_t AesEncrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in AesEncrypt()
345 int32_t AesDecrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in AesDecrypt()
393 int32_t AesNoUpdateEncWithInput(HcfCipher *cipher, HcfSymKey *key, HcfBlob *input, in AesNoUpdateEncWithInput()
424 int32_t AesDecryptEmptyMsg(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in AesDecryptEmptyMsg()
449 int32_t AesNoUpdateEncrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in AesNoUpdateEncrypt()
481 int32_t AesNoUpdateDecrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in AesNoUpdateDecrypt()
/base/security/crypto_framework/test/fuzztest/crypto_operation/hcfciphercreate_fuzzer/
Dhcfciphercreate_fuzzer.cpp33 static int32_t AesEncrypt(HcfCipher *cipher, HcfSymKey *key, HcfBlob *input, in AesEncrypt()
75 …static int32_t AesDecrypt(HcfCipher *cipher, HcfSymKey *key, HcfBlob *input, uint8_t *cipherText, … in AesDecrypt()
126 static int32_t Sm4Encrypt(HcfCipher *cipher, HcfSymKey *key, HcfBlob *input, in Sm4Encrypt()
169 static int32_t Sm4Decrypt(HcfCipher *cipher, HcfSymKey *key, HcfBlob *input, in Sm4Decrypt()
235 HcfCipher *cipher = nullptr; in TestAesCipher() local
267 HcfCipher *cipher = nullptr; in TestSm4Cipher() local
311 HcfCipher *cipher = nullptr; in TestSm4GcmCipher() local
353 HcfCipher *cipher = nullptr; in TestRsaCipher() local
389 HcfCipher *cipher = nullptr; in HcfCipherCreateFuzzTest() local
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/symmetric_alg_test/
Dhks_3des_cipher_part1_test.cpp457 uint8_t cipher[DES3_COMMON_SIZE] = { 0 }; variable
502 uint8_t cipher[DES3_COMMON_SIZE] = { 0 }; variable
547 uint8_t cipher[DES3_COMMON_SIZE] = { 0 }; variable
592 uint8_t cipher[DES3_COMMON_SIZE] = { 0 }; variable
658 uint8_t cipher[DES3_COMMON_SIZE] = { 0 }; variable
692 uint8_t cipher[DES3_COMMON_SIZE] = { 0 }; variable
726 uint8_t cipher[DES3_COMMON_SIZE] = { 0 }; variable
760 uint8_t cipher[DES3_COMMON_SIZE] = { 0 }; variable
Dhks_des_cipher_part1_test.cpp347 uint8_t cipher[DES_COMMON_SIZE] = { 0 }; variable
392 uint8_t cipher[DES_COMMON_SIZE] = { 0 }; variable
458 uint8_t cipher[DES_COMMON_SIZE] = { 0 }; variable
492 uint8_t cipher[DES_COMMON_SIZE] = { 0 }; variable
526 uint8_t cipher[DES_COMMON_SIZE] = { 0 }; variable
560 uint8_t cipher[DES_COMMON_SIZE] = { 0 }; variable
/base/security/crypto_framework/frameworks/crypto_operation/
Dcipher.c56 static void SetKeyType(HcfAlgParaValue value, void *cipher) in SetKeyType()
87 static void SetKeyLength(HcfAlgParaValue value, void *cipher) in SetKeyLength()
126 static void SetMode(HcfAlgParaValue value, void *cipher) in SetMode()
132 static void SetPadding(HcfAlgParaValue value, void *cipher) in SetPadding()
138 static void SetDigest(HcfAlgParaValue value, CipherAttr *cipher) in SetDigest()
143 static void SetMgf1Digest(HcfAlgParaValue value, CipherAttr *cipher) in SetMgf1Digest()
148 static HcfResult OnSetParameter(const HcfParaConfig *config, void *cipher) in OnSetParameter()
326 static void InitCipher(HcfCipherGeneratorSpi *spiObj, CipherGenImpl *cipher) in InitCipher()
/base/tee/tee_dev_kit/sdk/src/TA/aes_demo/
Daes_demo_ta.c53 static TEE_Result demo_aes_cbc_pkcs5_encrypt(TEE_ObjectHandle key_obj, uint8_t *cipher, size_t *cip… in demo_aes_cbc_pkcs5_encrypt()
94 uint8_t *cipher, size_t cipher_size, uint8_t *decrypted, size_t *dec_size) in demo_aes_cbc_pkcs5_decrypt()
135 uint8_t cipher[AES_CBC_CIPHER_LEN] = {0}; in test_demo_aes_cbc_pkcs5() local
177 uint8_t *cipher, size_t *cipher_size, uint8_t *tag, size_t *tag_size) in demo_aes_ccm_encrypt()
226 static TEE_Result demo_aes_ccm_decrypt(TEE_ObjectHandle key_obj, uint8_t *cipher, size_t cipher_siz… in demo_aes_ccm_decrypt()
279 uint8_t cipher[AES_CCM_CIPHER_LEN] = {0}; in test_demo_aes_ccm() local
/base/security/crypto_framework/frameworks/js/napi/crypto/src/
Dnapi_cipher.cpp44 HcfCipher *cipher = nullptr; member
339 HcfCipher *cipher = context->cipher; in AsyncInitProcess() local
354 HcfCipher *cipher = context->cipher; in AsyncUpdateProcess() local
365 HcfCipher *cipher = context->cipher; in AsyncDoFinalProcess() local
498 NapiCipher::NapiCipher(HcfCipher *cipher) in NapiCipher()
533 static napi_value SyncInit(napi_env env, HcfCipher *cipher, HcfCryptoMode opMode, HcfKey *key, in SyncInit()
563 HcfCipher *cipher = napiCipher->GetCipher(); in JsCipherInitSync() local
629 HcfCipher *cipher = nullptr; in JsCipherUpdateSync() local
695 HcfCipher *cipher = nullptr; in JsCipherDoFinalSync() local
749 HcfCipher *cipher = napiCipher->GetCipher(); in JsGetAlgorithm() local
[all …]
/base/security/crypto_framework/test/unittest/src/native/
Dnative_asym_cipher_test.cpp58 OH_CryptoAsymCipher *cipher = nullptr; variable
145 OH_CryptoAsymCipher *cipher = nullptr; variable
172 OH_CryptoAsymCipher *cipher = nullptr; variable
223 OH_CryptoAsymCipher *cipher = nullptr; variable
Dnative_sym_cipher_test.cpp52 OH_Crypto_ErrCode AesEncrypt(OH_CryptoSymCipher *cipher, OH_CryptoSymKey *key, OH_CryptoSymCipherPa… in AesEncrypt()
96 OH_Crypto_ErrCode AesDecrypt(OH_CryptoSymCipher *cipher, OH_CryptoSymKey *key, OH_CryptoSymCipherPa… in AesDecrypt()
174 OH_CryptoSymCipher *cipher = nullptr; variable

1234