Home
last modified time | relevance | path

Searched refs:paramsObj (Results 1 – 3 of 3) sorted by relevance

/base/security/crypto_framework/frameworks/crypto_operation/
Dkey_agreement.c59 static void SetKeyType(HcfAlgParaValue value, HcfKeyAgreementParams *paramsObj) in SetKeyType() argument
66 paramsObj->algo = HCF_ALG_ECC; in SetKeyType()
73 static void SetKeyTypeDefault(HcfAlgParaValue value, HcfKeyAgreementParams *paramsObj) in SetKeyTypeDefault() argument
77 paramsObj->algo = HCF_ALG_ECC; in SetKeyTypeDefault()
91 HcfKeyAgreementParams *paramsObj = (HcfKeyAgreementParams *)params; in ParseKeyAgreementParams() local
95 SetKeyTypeDefault(config->paraValue, paramsObj); in ParseKeyAgreementParams()
98 SetKeyType(config->paraValue, paramsObj); in ParseKeyAgreementParams()
Dsignature.c98 static void SetKeyTypeDefault(HcfAlgParaValue value, HcfSignatureParams *paramsObj) in SetKeyTypeDefault() argument
102 paramsObj->algo = HCF_ALG_ECC; in SetKeyTypeDefault()
105 paramsObj->algo = HCF_ALG_RSA; in SetKeyTypeDefault()
108 paramsObj->algo = HCF_ALG_DSA; in SetKeyTypeDefault()
111 paramsObj->algo = HCF_ALG_SM2; in SetKeyTypeDefault()
119 static void SetKeyType(HcfAlgParaValue value, HcfSignatureParams *paramsObj) in SetKeyType() argument
126 paramsObj->algo = HCF_ALG_ECC; in SetKeyType()
135 paramsObj->algo = HCF_ALG_RSA; in SetKeyType()
140 paramsObj->algo = HCF_ALG_DSA; in SetKeyType()
143 paramsObj->algo = HCF_ALG_SM2; in SetKeyType()
[all …]
/base/security/crypto_framework/frameworks/key/
Dasy_key_generator.c391 HcfAsyKeyGenParams *paramsObj = (HcfAsyKeyGenParams *)params; in ParseAsyKeyGenParams() local
395 SetKeyType(config->paraValue, paramsObj); in ParseAsyKeyGenParams()
398 SetPrimes(config->paraValue, paramsObj); in ParseAsyKeyGenParams()