Home
last modified time | relevance | path

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

123

/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_sm4_cipher_test.cpp57 HcfCipher *cipher = nullptr; variable
105 HcfCipher *cipher = nullptr; variable
152 HcfCipher *cipher = nullptr; variable
198 HcfCipher *cipher = nullptr; variable
247 HcfCipher *cipher = nullptr; variable
293 HcfCipher *cipher = nullptr; variable
341 HcfCipher *cipher = nullptr; variable
389 HcfCipher *cipher = nullptr; variable
436 HcfCipher *cipher = nullptr; variable
483 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_ecb_cipher_test.cpp52 HcfCipher *cipher = nullptr; variable
99 HcfCipher *cipher = nullptr; variable
147 HcfCipher *cipher = nullptr; variable
194 HcfCipher *cipher = nullptr; variable
241 HcfCipher *cipher = nullptr; variable
289 HcfCipher *cipher = nullptr; variable
332 HcfCipher *cipher = nullptr; variable
361 HcfCipher *cipher = nullptr; variable
390 HcfCipher *cipher = nullptr; variable
430 HcfCipher *cipher = nullptr; variable
[all …]
Dcrypto_sm4_cfb_cipher_test.cpp52 HcfCipher *cipher = nullptr; variable
100 HcfCipher *cipher = nullptr; variable
148 HcfCipher *cipher = nullptr; variable
196 HcfCipher *cipher = nullptr; variable
244 HcfCipher *cipher = nullptr; variable
292 HcfCipher *cipher = nullptr; variable
340 HcfCipher *cipher = nullptr; variable
387 HcfCipher *cipher = nullptr; variable
435 HcfCipher *cipher = nullptr; variable
483 HcfCipher *cipher = nullptr; variable
[all …]
Dcrypto_3des_cipher_test.cpp73 static int32_t DesEncrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in DesEncrypt()
116 static int32_t DesDecrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in DesDecrypt()
163 static int32_t DesNoUpdateEncrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in DesNoUpdateEncrypt()
193 static int32_t DesNoUpdateDecrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in DesNoUpdateDecrypt()
234 HcfCipher *cipher = nullptr; variable
281 HcfCipher *cipher = nullptr; variable
329 HcfCipher *cipher = nullptr; variable
377 HcfCipher *cipher = nullptr; variable
428 HcfCipher *cipher = nullptr; variable
478 HcfCipher *cipher = nullptr; variable
[all …]
Dsm4_common.cpp72 int32_t Sm4EncryptWithInput(HcfCipher *cipher, HcfSymKey *key, HcfBlob *input, in Sm4EncryptWithInput()
115 int32_t Sm4DecryptEmptyMsg(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in Sm4DecryptEmptyMsg()
141 int32_t Sm4Encrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in Sm4Encrypt()
184 int32_t Sm4Decrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in Sm4Decrypt()
231 int32_t Sm4NoUpdateEncrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in Sm4NoUpdateEncrypt()
261 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.cpp58 HcfCipher *cipher = nullptr; variable
110 HcfCipher *cipher = nullptr; variable
155 HcfCipher *cipher = nullptr; variable
200 HcfCipher *cipher = nullptr; variable
250 HcfCipher *cipher = nullptr; variable
296 HcfCipher *cipher = nullptr; variable
341 HcfCipher *cipher = nullptr; variable
386 HcfCipher *cipher = nullptr; variable
432 HcfCipher *cipher = nullptr; variable
480 HcfCipher *cipher = nullptr; variable
[all …]
Dcrypto_aes_cfb_cipher_test.cpp54 HcfCipher *cipher = nullptr; variable
105 HcfCipher *cipher = nullptr; variable
156 HcfCipher *cipher = nullptr; variable
208 HcfCipher *cipher = nullptr; variable
259 HcfCipher *cipher = nullptr; variable
310 HcfCipher *cipher = nullptr; variable
360 HcfCipher *cipher = nullptr; variable
410 HcfCipher *cipher = nullptr; variable
460 HcfCipher *cipher = nullptr; variable
510 HcfCipher *cipher = nullptr; variable
[all …]
Dcrypto_aes_gcm_cipher_test.cpp54 HcfCipher *cipher = nullptr; variable
108 HcfCipher *cipher = nullptr; variable
162 HcfCipher *cipher = nullptr; variable
216 HcfCipher *cipher = nullptr; variable
270 HcfCipher *cipher = nullptr; variable
324 HcfCipher *cipher = nullptr; variable
378 HcfCipher *cipher = nullptr; variable
431 HcfCipher *cipher = nullptr; variable
478 HcfCipher *cipher = nullptr; variable
492 HcfCipher *cipher = nullptr; variable
[all …]
Dcrypto_aes_ofb_cipher_test.cpp54 HcfCipher *cipher = nullptr; variable
105 HcfCipher *cipher = nullptr; variable
156 HcfCipher *cipher = nullptr; variable
206 HcfCipher *cipher = nullptr; variable
257 HcfCipher *cipher = nullptr; variable
308 HcfCipher *cipher = nullptr; variable
355 HcfCipher *cipher = nullptr; variable
408 HcfCipher *cipher = nullptr; variable
450 HcfCipher *cipher = nullptr; variable
Dcrypto_aes_cbc_cipher_test.cpp54 HcfCipher *cipher = nullptr; variable
105 HcfCipher *cipher = nullptr; variable
156 HcfCipher *cipher = nullptr; variable
207 HcfCipher *cipher = nullptr; variable
258 HcfCipher *cipher = nullptr; variable
309 HcfCipher *cipher = nullptr; variable
359 HcfCipher *cipher = nullptr; variable
411 HcfCipher *cipher = nullptr; variable
453 HcfCipher *cipher = nullptr; variable
Dcrypto_aes_ctr_cipher_test.cpp54 HcfCipher *cipher = nullptr; variable
105 HcfCipher *cipher = nullptr; variable
156 HcfCipher *cipher = nullptr; variable
207 HcfCipher *cipher = nullptr; variable
258 HcfCipher *cipher = nullptr; variable
309 HcfCipher *cipher = nullptr; variable
357 HcfCipher *cipher = nullptr; variable
410 HcfCipher *cipher = nullptr; variable
452 HcfCipher *cipher = nullptr; variable
Dcrypto_aes_ccm_cipher_test.cpp54 HcfCipher *cipher = nullptr; variable
107 HcfCipher *cipher = nullptr; variable
160 HcfCipher *cipher = nullptr; variable
213 HcfCipher *cipher = nullptr; variable
266 HcfCipher *cipher = nullptr; variable
320 HcfCipher *cipher = nullptr; variable
373 HcfCipher *cipher = nullptr; variable
425 HcfCipher *cipher = nullptr; variable
474 HcfCipher *cipher = nullptr; variable
509 HcfCipher *cipher = nullptr; variable
[all …]
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()
Dcrypto_aes_cipher_test.cpp680 HcfCipher *cipher = nullptr; variable
717 HcfCipher *cipher = nullptr; variable
754 HcfCipher *cipher = nullptr; variable
789 HcfCipher *cipher = nullptr; variable
803 HcfCipher *cipher = nullptr; variable
/base/security/crypto_framework/test/fuzztest/crypto_operation/hcfciphercreate_fuzzer/
Dhcfciphercreate_fuzzer.cpp33 static int32_t AesEncrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in AesEncrypt()
72 static int32_t AesDecrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in AesDecrypt()
121 HcfCipher *cipher = nullptr; in TestAesCipher() local
164 HcfCipher *cipher = nullptr; in TestRsaCipher() local
200 HcfCipher *cipher = nullptr; in HcfCipherCreateFuzzTest() local
/base/security/crypto_framework/frameworks/crypto_operation/
Dcipher.c54 static void SetKeyType(HcfAlgParaValue value, void *cipher) in SetKeyType()
82 static void SetKeyLength(HcfAlgParaValue value, void *cipher) in SetKeyLength()
118 static void SetMode(HcfAlgParaValue value, void *cipher) in SetMode()
124 static void SetPadding(HcfAlgParaValue value, void *cipher) in SetPadding()
130 static void SetDigest(HcfAlgParaValue value, CipherAttr *cipher) in SetDigest()
135 static void SetMgf1Digest(HcfAlgParaValue value, CipherAttr *cipher) in SetMgf1Digest()
140 static HcfResult OnSetParameter(const HcfParaConfig *config, void *cipher) in OnSetParameter()
318 static void InitCipher(HcfCipherGeneratorSpi *spiObj, CipherGenImpl *cipher) in InitCipher()
/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/pake_task/standard_exchange_task/
Dstandard_exchange_message_util.c25 int32_t PackageNonceAndCipherToJson(const Uint8Buff *nonce, const Uint8Buff *cipher, CJson *data, c… in PackageNonceAndCipherToJson()
52 int32_t ParseNonceAndCipherFromJson(Uint8Buff *nonce, Uint8Buff *cipher, const CJson *in, const cha… in ParseNonceAndCipherFromJson()
/base/security/crypto_framework/frameworks/js/napi/crypto/src/
Dnapi_cipher.cpp43 HcfCipher *cipher = nullptr; member
344 HcfCipher *cipher = context->cipher; in AsyncInitProcess() local
359 HcfCipher *cipher = context->cipher; in AsyncUpdateProcess() local
370 HcfCipher *cipher = context->cipher; in AsyncDoFinalProcess() local
504 NapiCipher::NapiCipher(HcfCipher *cipher) in NapiCipher()
538 static napi_value SyncInit(napi_env env, HcfCipher *cipher, HcfCryptoMode opMode, HcfKey *key, in SyncInit()
568 HcfCipher *cipher = napiCipher->GetCipher(); in JsCipherInitSync() local
633 HcfCipher *cipher = nullptr; in JsCipherUpdateSync() local
700 HcfCipher *cipher = nullptr; in JsCipherDoFinalSync() local
755 HcfCipher *cipher = napiCipher->GetCipher(); in JsGetAlgorithm() local
[all …]
/base/security/asset/services/core_service/src/operations/
Doperation_update.rs32 let cipher = Crypto::encrypt(&secret_key, secret, &common::build_aad(db_data)?)?; in encrypt() localVariable
119 let cipher = encrypt(calling_info, result)?; in update() localVariable
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/asymmetric_alg_test/
Dhks_sm2_cipher_test.cpp489 uint8_t cipher[SM2_COMMON_SIZE] = {0}; variable
513 uint8_t cipher[SM2_COMMON_SIZE] = {0}; variable
555 uint8_t cipher[SM2_COMMON_SIZE] = {0}; variable
575 uint8_t cipher[SM2_COMMON_SIZE] = {0}; variable
658 uint8_t cipher[SM2_COMMON_SIZE] = {0}; in HksSm2CipherTestRunByNdk() local
/base/security/huks/frameworks/crypto_lite/cipher/src/
Dcipher_rsa.c320 static int32_t RsaEncrypt(RsaKeyData *key, const RsaData *plain, RsaData *cipher) in RsaEncrypt()
365 static int32_t CheckParamAndMallocBuf(size_t rsaLen, const RsaData *cipher, unsigned char **buf, un… in CheckParamAndMallocBuf()
383 static int32_t RsaPkcs1Decrypt(mbedtls_rsa_context *rsa, size_t rsaLen, RsaData *cipher, RsaData *p… in RsaPkcs1Decrypt()
438 static int32_t RsaDecrypt(RsaKeyData *key, RsaData *cipher, RsaData *plain) in RsaDecrypt()
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/
Dhks_sm4_cipher_test_common.cpp89 uint8_t cipher[SM4_COMMON_SIZE] = {0}; in HksSm4CipherTestCaseOther() local
123 uint8_t cipher[SM4_COMMON_SIZE] = {0}; in HksSm4CipherTestCaseGcm() local

123