Home
last modified time | relevance | path

Searched defs:spec (Results 1 – 25 of 98) sorted by relevance

1234

/base/security/crypto_framework/common/src/
Dasy_key_params.c48 void FreeDsaCommParamsSpec(HcfDsaCommParamsSpec *spec) in FreeDsaCommParamsSpec()
63 void FreeDhCommParamsSpec(HcfDhCommParamsSpec *spec) in FreeDhCommParamsSpec()
76 static void DestroyDsaCommParamsSpec(HcfDsaCommParamsSpec *spec) in DestroyDsaCommParamsSpec()
82 void DestroyDsaPubKeySpec(HcfDsaPubKeyParamsSpec *spec) in DestroyDsaPubKeySpec()
93 void DestroyDsaKeyPairSpec(HcfDsaKeyPairParamsSpec *spec) in DestroyDsaKeyPairSpec()
109 static void DestroyDhCommParamsSpec(HcfDhCommParamsSpec *spec) in DestroyDhCommParamsSpec()
115 void DestroyDhPubKeySpec(HcfDhPubKeyParamsSpec *spec) in DestroyDhPubKeySpec()
126 void DestroyDhPriKeySpec(HcfDhPriKeyParamsSpec *spec) in DestroyDhPriKeySpec()
140 void DestroyDhKeyPairSpec(HcfDhKeyPairParamsSpec *spec) in DestroyDhKeyPairSpec()
177 void FreeEccCommParamsSpec(HcfEccCommParamsSpec *spec) in FreeEccCommParamsSpec()
[all …]
/base/security/crypto_framework/test/unittest/src/sm2/
Dcrypto_sm2_util_test.cpp84 HcfResult ConstructCorrectSm2CipherTextSpec(Sm2CipherTextSpec **spec) in ConstructCorrectSm2CipherTextSpec()
102 HcfResult ConstructMissYErrorSm2CipherTextSpec(Sm2CipherTextSpec **spec) in ConstructMissYErrorSm2CipherTextSpec()
118 HcfResult ConstructMissXErrorSm2CipherTextSpec(Sm2CipherTextSpec **spec) in ConstructMissXErrorSm2CipherTextSpec()
134 HcfResult ConstructMissHashDataErrorSm2CipherTextSpec(Sm2CipherTextSpec **spec) in ConstructMissHashDataErrorSm2CipherTextSpec()
150 HcfResult ConstructMissCipherDataErrorSm2CipherTextSpec(Sm2CipherTextSpec **spec) in ConstructMissCipherDataErrorSm2CipherTextSpec()
166 HcfResult ConstructLenErrorSm2CipherTextSpec(Sm2CipherTextSpec **spec) in ConstructLenErrorSm2CipherTextSpec()
185 HcfResult ConstructLenZeroXSm2CipherTextSpec(Sm2CipherTextSpec **spec) in ConstructLenZeroXSm2CipherTextSpec()
203 HcfResult ConstructLenZeroYSm2CipherTextSpec(Sm2CipherTextSpec **spec) in ConstructLenZeroYSm2CipherTextSpec()
221 HcfResult ConstructLenZeroCipherDataSm2CipherTextSpec(Sm2CipherTextSpec **spec) in ConstructLenZeroCipherDataSm2CipherTextSpec()
239 HcfResult ConstructLenZeroHashDataSm2CipherTextSpec(Sm2CipherTextSpec **spec) in ConstructLenZeroHashDataSm2CipherTextSpec()
[all …]
/base/security/certificate_manager/test/unittest/src/
Dcm_finish_test.cpp79 static void TestSign(const struct CmBlob *keyUri, const struct CmSignatureSpec *spec, in TestSign()
99 static void TestVerify(const struct CmBlob *keyUri, const struct CmSignatureSpec *spec, in TestVerify()
128 static void TestSignVerify(uint32_t alg, bool isValidSignature, struct CmSignatureSpec *spec) in TestSignVerify()
163 struct CmSignatureSpec spec = { CM_KEY_PURPOSE_SIGN, CM_PADDING_PSS, CM_DIGEST_SHA256 }; in ProducerSessionMaxTest() local
306 struct CmSignatureSpec spec = { CM_KEY_PURPOSE_SIGN, CM_PADDING_PSS, CM_DIGEST_SHA256 }; variable
318 struct CmSignatureSpec spec = { CM_KEY_PURPOSE_SIGN, 0, CM_DIGEST_SHA256 }; variable
330 struct CmSignatureSpec spec = { CM_KEY_PURPOSE_SIGN, CM_PADDING_PSS, CM_DIGEST_SHA256 }; variable
342 struct CmSignatureSpec spec = { CM_KEY_PURPOSE_SIGN, 0, CM_DIGEST_SHA256 }; variable
367 struct CmSignatureSpec spec = { CM_KEY_PURPOSE_SIGN, CM_PADDING_PSS, CM_DIGEST_SHA256 }; variable
381 struct CmSignatureSpec spec = { CM_KEY_PURPOSE_SIGN, CM_PADDING_PSS, CM_DIGEST_SHA256 }; variable
[all …]
Dcm_init_test.cpp85 struct CmSignatureSpec spec = { CM_KEY_PURPOSE_SIGN, CM_PADDING_PSS, CM_DIGEST_SHA256 }; variable
103 struct CmSignatureSpec spec = { CM_KEY_PURPOSE_SIGN, CM_PADDING_PSS, CM_DIGEST_SHA256 }; variable
121 struct CmSignatureSpec spec = { CM_KEY_PURPOSE_SIGN, CM_PADDING_PSS, CM_DIGEST_SHA256 }; variable
139 struct CmSignatureSpec spec = { CM_KEY_PURPOSE_SIGN, CM_PADDING_PSS, CM_DIGEST_SHA256 }; variable
157 struct CmSignatureSpec spec = { CM_KEY_PURPOSE_SIGN, CM_PADDING_PSS, CM_DIGEST_SHA256 }; variable
175 struct CmSignatureSpec spec = { CM_KEY_PURPOSE_SIGN, CM_PADDING_PSS, CM_DIGEST_SHA256 }; variable
193 struct CmSignatureSpec spec = { CM_KEY_PURPOSE_SIGN, CM_PADDING_PSS, CM_DIGEST_SHA256 }; variable
211 struct CmSignatureSpec spec = { CM_KEY_PURPOSE_SIGN, CM_PADDING_PSS, CM_DIGEST_SHA256 }; variable
227 struct CmSignatureSpec *spec = nullptr; /* spec is NULL */ variable
243 …struct CmSignatureSpec spec = { CM_KEY_PURPOSE_AGREE }; /* purpose is not CM_KEY_PURPOSE_SIGN/VERI… variable
[all …]
/base/security/crypto_framework/test/unittest/src/ecc/
Decc_asy_key_common.cpp35 HcfResult ConstructEcc192CommParamsSpec(HcfAsyKeyParamsSpec **spec) in ConstructEcc192CommParamsSpec()
63 HcfResult ConstructEcc224CommParamsSpec(HcfAsyKeyParamsSpec **spec) in ConstructEcc224CommParamsSpec()
91 HcfResult ConstructEcc224PubKeyParamsSpec(HcfAsyKeyParamsSpec **spec) in ConstructEcc224PubKeyParamsSpec()
123 HcfResult ConstructEcc224PriKeyParamsSpec(HcfAsyKeyParamsSpec **spec) in ConstructEcc224PriKeyParamsSpec()
153 HcfResult ConstructEcc224KeyPairParamsSpec(HcfAsyKeyParamsSpec **spec) in ConstructEcc224KeyPairParamsSpec()
187 HcfResult ConstructEcc256CommParamsSpec(HcfAsyKeyParamsSpec **spec) in ConstructEcc256CommParamsSpec()
215 HcfResult ConstructEcc256PubKeyParamsSpec(HcfAsyKeyParamsSpec **spec) in ConstructEcc256PubKeyParamsSpec()
247 HcfResult ConstructEcc256PriKeyParamsSpec(HcfAsyKeyParamsSpec **spec) in ConstructEcc256PriKeyParamsSpec()
277 HcfResult ConstructEcc256KeyPairParamsSpec(HcfAsyKeyParamsSpec **spec) in ConstructEcc256KeyPairParamsSpec()
311 HcfResult ConstructEcc384CommParamsSpec(HcfAsyKeyParamsSpec **spec) in ConstructEcc384CommParamsSpec()
[all …]
/base/security/huks/test/unittest/huks_standard_test/crypto_engine_test/src/
Dhks_crypto_hal_api_openssl.cpp68 HksKeySpec spec = { variable
86 HksKeySpec spec = { variable
106 HksKeySpec spec = { variable
149 HksUsageSpec spec = { .algType = 0xffff }; variable
184 HksUsageSpec spec = { .algType = 0xffff }; variable
219 HksUsageSpec spec = { .algType = HKS_ALG_AES, .mode = 0xffff }; variable
255 HksUsageSpec spec = { .algType = HKS_ALG_AES, .mode = 0xffff }; variable
283 … HksUsageSpec spec = { .algType = HKS_ALG_AES, .mode = HKS_MODE_CBC, .padding = HKS_PADDING_PSS }; variable
307 HksUsageSpec spec = { .algType = 0xffff }; variable
334 HksUsageSpec spec = { .algType = 0xffff }; variable
[all …]
Dhks_crypto_hal_api_mbedtls.cpp67 HksKeySpec spec = { variable
86 HksKeySpec spec = { variable
107 HksKeySpec spec = { variable
129 HksUsageSpec spec = { .algType = 0xffff }; variable
164 HksUsageSpec spec = { .algType = 0xffff }; variable
199 HksUsageSpec spec = { .algType = HKS_ALG_AES, .mode = 0xffff }; variable
223 HksUsageSpec spec = { .algType = HKS_ALG_AES, .mode = 0xffff }; variable
246 … HksUsageSpec spec = { .algType = HKS_ALG_AES, .mode = HKS_MODE_CBC, .padding = HKS_PADDING_PSS }; variable
271 … HksUsageSpec spec = { .algType = HKS_ALG_AES, .mode = HKS_MODE_CBC, .padding = HKS_PADDING_NONE }; variable
293 … HksUsageSpec spec = { .algType = HKS_ALG_RSA, .mode = HKS_MODE_ECB, .padding = HKS_PADDING_NONE }; variable
[all …]
Dhks_crypto_hal_dsa_key.cpp66 HksKeySpec spec = { variable
100 HksKeySpec spec = { variable
Dhks_crypto_hal_ecc_key.cpp33 HksKeySpec spec = {0}; member
180 HksKeySpec spec = { variable
Dhks_crypto_hal_rsa_key.cpp33 HksKeySpec spec = {0}; member
226 HksKeySpec spec = { variable
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/cipher/src/
Dcipher_aes_common.c28 HcfIvParamsSpec *spec = (HcfIvParamsSpec *)params; in GetIv() local
38 HcfIvParamsSpec *spec = (HcfIvParamsSpec *)params; in GetIvLen() local
47 HcfCcmParamsSpec *spec = (HcfCcmParamsSpec *)params; in GetCcmTagLen() local
57 HcfCcmParamsSpec *spec = (HcfCcmParamsSpec *)params; in GetCcmTag() local
Dcipher_sm2_crypto_util_openssl.c26 static HcfResult BuildSm2Ciphertext(const Sm2CipherTextSpec *spec, struct Sm2CipherTextSt *sm2Text) in BuildSm2Ciphertext()
55 HcfResult HcfSm2SpecToAsn1(Sm2CipherTextSpec *spec, HcfBlob *output) in HcfSm2SpecToAsn1()
/base/security/crypto_framework/test/fuzztest/crypto_operation/hcfsm2create_fuzzer/
Dhcfsm2create_fuzzer.cpp64 …HcfResult ConstructCorrectSm2CipherTextXSpec(Sm2CipherTextSpec **spec, const uint8_t* data, size_t… in ConstructCorrectSm2CipherTextXSpec()
82 …HcfResult ConstructCorrectSm2CipherTextYSpec(Sm2CipherTextSpec **spec, const uint8_t* data, size_t… in ConstructCorrectSm2CipherTextYSpec()
100 …HcfResult ConstructCorrectSm2CipherTextSpec(Sm2CipherTextSpec **spec, const uint8_t* data, size_t … in ConstructCorrectSm2CipherTextSpec()
125 Sm2CipherTextSpec *spec = nullptr; in TestHcfGenCipherTextBySpec() local
150 Sm2CipherTextSpec *spec = nullptr; in TestHcfGenCipherTextByXSpec() local
175 Sm2CipherTextSpec *spec = nullptr; in TestHcfGenCipherTextByYSpec() local
199 Sm2CipherTextSpec *spec = nullptr; in TestHcfGetCipherTextSpec() local
223 Sm2CipherTextSpec spec = {}; in HcfSm2CreateFuzzTest() local
/base/security/crypto_framework/test/unittest/src/aes_cipher/
Dcrypto_aes_gcm_cipher_test.cpp57 HcfGcmParamsSpec spec = {}; variable
111 HcfGcmParamsSpec spec = {}; variable
165 HcfGcmParamsSpec spec = {}; variable
219 HcfGcmParamsSpec spec = {}; variable
273 HcfGcmParamsSpec spec = {}; variable
327 HcfGcmParamsSpec spec = {}; variable
381 HcfGcmParamsSpec spec = {}; variable
434 HcfGcmParamsSpec spec = {}; variable
555 HcfGcmParamsSpec spec = {}; variable
599 HcfGcmParamsSpec spec = {}; variable
[all …]
Dcrypto_aes_ccm_cipher_test.cpp56 HcfCcmParamsSpec spec = {}; variable
109 HcfCcmParamsSpec spec = {}; variable
162 HcfCcmParamsSpec spec = {}; variable
215 HcfCcmParamsSpec spec = {}; variable
268 HcfCcmParamsSpec spec = {}; variable
322 HcfCcmParamsSpec spec = {}; variable
375 HcfCcmParamsSpec spec = {}; variable
427 HcfCcmParamsSpec spec = {}; variable
511 HcfCcmParamsSpec spec = {}; variable
553 HcfCcmParamsSpec spec = {}; variable
[all …]
/base/security/crypto_framework/test/unittest/src/
Dcrypto_sm4_gcm_cipher_test.cpp59 HcfGcmParamsSpec spec = {}; variable
113 HcfGcmParamsSpec spec = {}; variable
167 HcfGcmParamsSpec spec = {}; variable
221 HcfGcmParamsSpec spec = {}; variable
275 HcfGcmParamsSpec spec = {}; variable
329 HcfGcmParamsSpec spec = {}; variable
451 HcfGcmParamsSpec spec = {}; variable
495 HcfGcmParamsSpec spec = {}; variable
538 HcfGcmParamsSpec spec = {}; variable
580 HcfGcmParamsSpec spec = {}; variable
[all …]
Dcrypto_common_cov_test.cpp464 HcfDsaCommParamsSpec *spec = nullptr; variable
471 HcfDsaPubKeyParamsSpec *spec = nullptr; variable
478 HcfDsaKeyPairParamsSpec *spec = nullptr; variable
485 HcfEccCommParamsSpec *spec = nullptr; variable
492 HcfEccPubKeyParamsSpec *spec = nullptr; variable
499 HcfEccPriKeyParamsSpec *spec = nullptr; variable
506 HcfEccKeyPairParamsSpec *spec = nullptr; variable
513 HcfRsaCommParamsSpec *spec = nullptr; variable
520 HcfRsaPubKeyParamsSpec *spec = nullptr; variable
527 HcfRsaKeyPairParamsSpec *spec = nullptr; variable
Decc_common_param_spec.c26 HcfResult ConstructEccKeyPairCommParamsSpec(const char *algoName, HcfEccCommParamsSpec **spec) in ConstructEccKeyPairCommParamsSpec()
73 HcfAsyKeyParamsSpec **spec) in ConstructEccKeyPairParamsSpec()
143 HcfAsyKeyParamsSpec **spec) in ConstructEccPubKeyParamsSpec()
194 HcfAsyKeyParamsSpec **spec) in ConstructEccPriKeyParamsSpec()
/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/
Dhks_openssl_sm3.c31 static int32_t Sm3GenKeyCheckParam(const struct HksKeySpec *spec) in Sm3GenKeyCheckParam()
40 int32_t HksOpensslSm3GenerateKey(const struct HksKeySpec *spec, struct HksBlob *key) in HksOpensslSm3GenerateKey()
/base/security/huks/test/unittest/huks_standard_test/module_test/framework_test/crypto_engine_test/src/
Dhks_openssl_sm4_test.cpp165 HksKeySpec spec = { variable
218 HksUsageSpec spec = { variable
254 HksUsageSpec *spec = reinterpret_cast<HksUsageSpec *>(HksMalloc(sizeof(HksUsageSpec))); variable
/base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/src/
Dhks_mbedtls_dsa.c26 int32_t HksMbedtlsDsaGenerateKey(const struct HksKeySpec *spec, struct HksBlob *key) in HksMbedtlsDsaGenerateKey()
/base/security/crypto_framework/frameworks/crypto_operation/
Dsm2_crypto_util.c64 static bool CheckSm2CipherTextSpec(Sm2CipherTextSpec *spec) in CheckSm2CipherTextSpec()
93 HcfResult HcfGenCipherTextBySpec(Sm2CipherTextSpec *spec, const char *mode, HcfBlob *output) in HcfGenCipherTextBySpec()
/base/security/crypto_framework/frameworks/js/napi/crypto/src/
Dnapi_sm2_crypto_util.cpp121 Sm2CipherTextSpec *spec = nullptr; in JsGenCipherTextBySpec() local
158 static bool CheckSm2CipherTextSpec(Sm2CipherTextSpec *spec) in CheckSm2CipherTextSpec()
194 static bool BuildSm2CipherTextSpecToNapiValue(napi_env env, Sm2CipherTextSpec *spec, napi_value *in… in BuildSm2CipherTextSpecToNapiValue()
215 static napi_value ConvertSm2CipherTextSpecToNapiValue(napi_env env, Sm2CipherTextSpec *spec) in ConvertSm2CipherTextSpecToNapiValue()
Dnapi_utils.cpp581 static bool InitDsaCommonAsyKeySpec(napi_env env, napi_value arg, HcfDsaCommParamsSpec *spec) in InitDsaCommonAsyKeySpec()
616 …HcfDsaCommParamsSpec *spec = reinterpret_cast<HcfDsaCommParamsSpec *>(HcfMalloc(sizeof(HcfDsaCommP… in GetDsaCommonAsyKeySpec() local
632 HcfDsaPubKeyParamsSpec *spec = reinterpret_cast<HcfDsaPubKeyParamsSpec *>( in GetDsaPubKeySpec() local
664 HcfDsaKeyPairParamsSpec *spec = reinterpret_cast<HcfDsaKeyPairParamsSpec *>( in GetDsaKeyPairAsyKeySpec() local
792 static bool InitEccDetailAsyKeySpec(napi_env env, napi_value arg, HcfEccCommParamsSpec *spec) in InitEccDetailAsyKeySpec()
821 static bool InitEccCommonAsyKeySpec(napi_env env, napi_value arg, HcfEccCommParamsSpec *spec, const… in InitEccCommonAsyKeySpec()
868 …HcfEccCommParamsSpec *spec = reinterpret_cast<HcfEccCommParamsSpec *>(HcfMalloc(sizeof(HcfEccCommP… in GetEccCommonAsyKeySpec() local
884 HcfEccPriKeyParamsSpec *spec = in GetEccPriKeySpec() local
918 HcfEccPubKeyParamsSpec *spec = in GetEccPubKeySpec() local
951 HcfEccKeyPairParamsSpec *spec = in GetEccKeyPairAsyKeySpec() local
[all …]
/base/security/crypto_framework/frameworks/key/
Dasy_key_generator.c612 HcfDsaCommParamsSpec *spec = (HcfDsaCommParamsSpec *)HcfMalloc(sizeof(HcfDsaCommParamsSpec), 0); in CreateDsaCommonSpecImpl() local
629 …HcfDsaPubKeyParamsSpec *spec = (HcfDsaPubKeyParamsSpec *)HcfMalloc(sizeof(HcfDsaPubKeyParamsSpec),… in CreateDsaPubKeySpecImpl() local
654 …HcfDsaKeyPairParamsSpec *spec = (HcfDsaKeyPairParamsSpec *)HcfMalloc(sizeof(HcfDsaKeyPairParamsSpe… in CreateDsaKeyPairSpecImpl() local
690 HcfDsaCommParamsSpec *spec = NULL; in CreateDsaParamsSpecImpl() local
713 …HcfDhPubKeyParamsSpec *spec = (HcfDhPubKeyParamsSpec *)HcfMalloc(sizeof(HcfDhPubKeyParamsSpec), 0); in CreateDhPubKeySpecImpl() local
738 …HcfDhPriKeyParamsSpec *spec = (HcfDhPriKeyParamsSpec *)HcfMalloc(sizeof(HcfDhPriKeyParamsSpec), 0); in CreateDhPriKeySpecImpl() local
764 …HcfDhKeyPairParamsSpec *spec = (HcfDhKeyPairParamsSpec *)HcfMalloc(sizeof(HcfDhKeyPairParamsSpec),… in CreateDhKeyPairSpecImpl() local
801 HcfDhCommParamsSpec *spec = NULL; in CreateDhParamsSpecImpl() local
911 HcfEccCommParamsSpec *spec = NULL; in CreateEccParamsSpecImpl() local
953 …HcfRsaPubKeyParamsSpec *spec = (HcfRsaPubKeyParamsSpec *)HcfMalloc(sizeof(HcfRsaPubKeyParamsSpec),… in CreateRsaPubKeySpecImpl() local
[all …]

1234