Home
last modified time | relevance | path

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

/base/security/crypto_framework/test/unittest/src/
Dcrypto_rsa_cipher_test.cpp45 HcfCipher *cipher = NULL; variable
63 HcfCipher *cipher = NULL; variable
78 HcfCipher *cipher = NULL; variable
93 HcfCipher *cipher = NULL; variable
108 HcfCipher *cipher = NULL; variable
123 HcfCipher *cipher = NULL; variable
138 HcfCipher *cipher = NULL; variable
153 HcfCipher *cipher = NULL; variable
168 HcfCipher *cipher = NULL; variable
183 HcfCipher *cipher = NULL; 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 = NULL; variable
281 HcfCipher *cipher = NULL; variable
329 HcfCipher *cipher = NULL; variable
377 HcfCipher *cipher = NULL; variable
428 HcfCipher *cipher = NULL; variable
478 HcfCipher *cipher = NULL; variable
[all …]
Dcrypto_aes_cipher_test.cpp182 static int32_t AesMultiBlockEncrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params) in AesMultiBlockEncrypt()
236 static int32_t AesMultiBlockDecrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params) in AesMultiBlockDecrypt()
290 static int32_t AesEncrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in AesEncrypt()
335 static int32_t AesDecrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in AesDecrypt()
383 static int32_t AesNoUpdateEncrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in AesNoUpdateEncrypt()
415 static int32_t AesNoUpdateDecrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in AesNoUpdateDecrypt()
463 HcfCipher *cipher = NULL; variable
515 HcfCipher *cipher = NULL; variable
560 HcfCipher *cipher = NULL; variable
608 HcfCipher *cipher = NULL; variable
[all …]
/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.c51 static void SetKeyLength(HCF_ALG_PARA_VALUE value, void *cipher) in SetKeyLength()
81 static void SetMode(HCF_ALG_PARA_VALUE value, void *cipher) in SetMode()
87 static void SetPadding(HCF_ALG_PARA_VALUE value, void *cipher) in SetPadding()
93 static void SetDigest(HCF_ALG_PARA_VALUE value, CipherAttr *cipher) in SetDigest()
98 static void SetMgf1Digest(HCF_ALG_PARA_VALUE value, CipherAttr *cipher) in SetMgf1Digest()
103 static HcfResult OnSetParameter(const HcfParaConfig *config, void *cipher) in OnSetParameter()
209 static void InitCipher(HcfCipherGeneratorSpi *spiObj, CipherGenImpl *cipher) in InitCipher()
/base/security/device_auth/services/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/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/crypto_framework/frameworks/js/napi/crypto/src/
Dnapi_cipher.cpp41 HcfCipher *cipher = nullptr; member
312 HcfCipher *cipher = context->cipher; in AsyncInitProcess() local
333 HcfCipher *cipher = context->cipher; in AsyncUpdateProcess() local
350 HcfCipher *cipher = context->cipher; in AsyncDoFinalProcess() local
497 NapiCipher::NapiCipher(HcfCipher *cipher) in NapiCipher()
575 HcfCipher *cipher = napiCipher->GetCipher(); in JsGetAlgorithm() local
623 HcfCipher *cipher = nullptr; in CreateCipher() local
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/
Dhks_rsa_cipher_test_common.cpp130 uint8_t cipher[Unittest::RsaCipher::RSA_COMMON_SIZE] = {0}; in HksRsaCipherTestCase() local
166 uint8_t cipher[Unittest::RsaCipher::RSA_COMMON_SIZE] = {0}; in HksRsaCipherTestCaseAbnormal() local
Dhks_aes_cipher_test_common.cpp129 uint8_t cipher[AES_COMMON_SIZE] = {0}; in HksAesCipherTestCaseOther() local
161 uint8_t cipher[AES_COMMON_SIZE] = {0}; in HksAesCipherTestCaseGcm2() local
Dhks_sm4_cipher_test_common.cpp89 uint8_t cipher[SM4_COMMON_SIZE] = {0}; in HksSm4CipherTestCaseOther() local
Dhks_cross_test.cpp75 uint8_t cipher[CROSS_COMMON_SIZE] = {0}; variable
118 uint8_t cipher[CROSS_COMMON_SIZE] = {0}; variable
165 uint8_t cipher[CROSS_COMMON_SIZE] = {0}; variable
213 uint8_t cipher[CROSS_COMMON_SIZE] = {0}; variable
Dhks_rsa_cipher_part5_test.cpp340 uint8_t cipher[RSA_COMMON_SIZE] = {0}; variable
Dhks_aes_cipher_part3_test.cpp1068 uint8_t cipher[AES_COMMON_SIZE] = {0}; variable
/base/security/device_auth/frameworks/deviceauth_lite/source/auth_info/
Dauth_info.h27 struct uint8_buff cipher; member
/base/security/device_auth/frameworks/deviceauth_lite/source/huks_adapter/
Dhuks_adapter.c550 const struct uint8_buff *cipher, struct aes_aad *aad, uint32_t key_byte_size) in init_aes_gcm_decrypt_param_set()
583 int32_t aes_gcm_decrypt(struct var_buffer *key, const struct uint8_buff *cipher, in aes_gcm_decrypt()
1664 const struct uint8_buff *cipher, const struct aes_aad *aad) in init_aes_ccm_decrypt_key_params()
1707 int32_t aes_ccm_decrypt(struct var_buffer *key, const struct uint8_buff *cipher, in aes_ccm_decrypt()
/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/mini/
Dhuks_adapter.c367 static int32_t CheckAesGcmDecryptParam(const Uint8Buff *key, const Uint8Buff *cipher, const GcmPara… in CheckAesGcmDecryptParam()
387 static int32_t AesGcmDecrypt(const Uint8Buff *key, const Uint8Buff *cipher, in AesGcmDecrypt()
/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/
Dhks_openssl_aes.c97 const EVP_CIPHER *cipher = getCipherType(key->size, usageSpec->mode); in OpensslBlockCipherCryptInit() local
691 const EVP_CIPHER *cipher = GetAesCipherType(key->size, usageSpec->mode); in OpensslAesCipherInit() local
/base/security/device_auth/frameworks/deviceauth_lite/source/key_agreement/
Dsts_client.c410 struct uint8_buff cipher = { receive->auth_return.auth_return, in parse_end_response_data() local
/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/small/
Dhuks_adapter.c336 static int32_t CheckAesGcmDecryptParam(const Uint8Buff *key, const Uint8Buff *cipher, const GcmPara… in CheckAesGcmDecryptParam()
356 static int32_t AesGcmDecrypt(const Uint8Buff *key, const Uint8Buff *cipher, in AesGcmDecrypt()
/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/standard/
Dhuks_adapter.c348 static int32_t CheckAesGcmDecryptParam(const Uint8Buff *key, const Uint8Buff *cipher, const GcmPara… in CheckAesGcmDecryptParam()
368 static int32_t AesGcmDecrypt(const Uint8Buff *key, const Uint8Buff *cipher, in AesGcmDecrypt()