Home
last modified time | relevance | path

Searched refs:skLen (Results 1 - 13 of 13) sorted by relevance

/base/security/crypto_framework/frameworks/key/
H A Ddh_key_util.c27 HcfResult HcfDhKeyUtilCreate(int32_t pLen, int32_t skLen, HcfDhCommParamsSpec **returnCommonParamSpec) in HcfDhKeyUtilCreate() argument
29 if ((pLen < 0) || (skLen < 0) || (returnCommonParamSpec == NULL)) { in HcfDhKeyUtilCreate()
34 if (skLen > pLen) { in HcfDhKeyUtilCreate()
35 LOGE("skLen is greater than pLen!"); in HcfDhKeyUtilCreate()
40 HcfResult ret = HcfDhCommonParamSpecCreate(pLen, skLen, &spiInstance); in HcfDhKeyUtilCreate()
/base/security/crypto_framework/test/fuzztest/key/dhkeyutil_fuzzer/
H A Ddhkeyutil_fuzzer.cpp53 int32_t skLen = 0; in DhKeyUtilFuzzTest() local
55 (void)memcpy_s(&skLen, int32Size, data, int32Size); in DhKeyUtilFuzzTest()
56 HcfResult res = HcfDhKeyUtilCreate(HCF_DH_PLEN_2048, skLen, &returnCommonParamSpec); in DhKeyUtilFuzzTest()
/base/security/crypto_framework/frameworks/cj/src/
H A Ddh_key_util_impl.cpp24 HcfDhCommParamsSpec *DHKeyUtilImpl::GenDHCommonParamsSpec(int32_t pLen, int32_t skLen, int32_t *errCode) in GenDHCommonParamsSpec() argument
27 *errCode = HcfDhKeyUtilCreate(pLen, skLen, &dhCommParamsSpec); in GenDHCommonParamsSpec()
H A Dcrypto_ffi.cpp1800 HcfDhCommParamsSpec *FFiOHOSDHKeyUtilGenDHCommonParamsSpec(int32_t pLen, int32_t skLen, int32_t *errCode) in FFiOHOSDHKeyUtilGenDHCommonParamsSpec() argument
1802 return DHKeyUtilImpl::GenDHCommonParamsSpec(pLen, skLen, errCode); in FFiOHOSDHKeyUtilGenDHCommonParamsSpec()
/base/security/crypto_framework/plugin/openssl_plugin/key/asy_key_generator/src/
H A Ddh_common_param_spec_generator_openssl.c63 static HcfResult GenerateDhKnownGroupEvpKey(int32_t skLen, char *nidName, EVP_PKEY **ppkey) in GenerateDhKnownGroupEvpKey() argument
70 if (skLen != 0) { in GenerateDhKnownGroupEvpKey()
71 params[1] = OpensslOsslParamConstructInt("priv_len", &skLen); in GenerateDhKnownGroupEvpKey()
147 HcfResult HcfDhCommonParamSpecCreate(int32_t pLen, int32_t skLen, HcfDhCommParamsSpecSpi **returnCommonParamSpec) in HcfDhCommonParamSpecCreate() argument
161 if (GenerateDhKnownGroupEvpKey(skLen, nidName, &dhKey) != HCF_SUCCESS) { in HcfDhCommonParamSpecCreate()
174 object->paramsSpec.length = skLen; in HcfDhCommonParamSpecCreate()
/base/security/crypto_framework/frameworks/js/napi/crypto/src/
H A Dnapi_dh_key_util.cpp53 int32_t skLen = 0; in JsGenDHCommonParamsSpec() local
55 if (!GetInt32FromJSParams(env, argv[1], skLen)) { in JsGenDHCommonParamsSpec()
56 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "failed to get skLen.")); in JsGenDHCommonParamsSpec()
57 LOGE("failed to get skLen."); in JsGenDHCommonParamsSpec()
62 if (HcfDhKeyUtilCreate(pLen, skLen, &dhCommParamsSpec) != HCF_SUCCESS) { in JsGenDHCommonParamsSpec()
/base/security/crypto_framework/interfaces/inner_api/key/
H A Ddh_key_util.h27 HcfResult HcfDhKeyUtilCreate(int32_t pLen, int32_t skLen, HcfDhCommParamsSpec **returnCommonParamSpec);
/base/security/crypto_framework/plugin/openssl_plugin/key/asy_key_generator/inc/
H A Ddh_common_param_spec_generator_openssl.h27 HcfResult HcfDhCommonParamSpecCreate(int32_t pLen, int32_t skLen, HcfDhCommParamsSpecSpi **returnCommonParamSpec);
/base/security/crypto_framework/frameworks/cj/include/
H A Ddh_key_util_impl.h27 static HcfDhCommParamsSpec *GenDHCommonParamsSpec(int32_t pLen, int32_t skLen, int32_t *errCode);
H A Dcrypto_ffi.h187 int32_t pLen, int32_t skLen, int32_t *errCode);
/base/security/crypto_framework/test/unittest/src/
H A Dcrypto_dh_key_agreement_test.cpp89 static HcfResult ExchangekeyAgreementWithDiffSkLen(const int pLen, const int skLen, const int size) in ExchangekeyAgreementWithDiffSkLen() argument
101 if (HcfDhKeyUtilCreate(pLen, skLen, &paramSpec) != HCF_SUCCESS || in ExchangekeyAgreementWithDiffSkLen()
H A Dcrypto_dh_asy_key_generator_by_spec_test.cpp138 static HcfResult ConstructDHKeyCommParamsSpec(int32_t pLen, int32_t skLen, HcfDhCommParamsSpec **spec) in ConstructDHKeyCommParamsSpec() argument
141 HcfResult res = HcfDhKeyUtilCreate(pLen, skLen, &dhCommSpec); in ConstructDHKeyCommParamsSpec()
344 static HcfResult HcfDhKeyUtilCreateTest(const int pLen, const int skLen) in HcfDhKeyUtilCreateTest() argument
347 HcfResult res = HcfDhKeyUtilCreate(pLen, skLen, &returnCommonParamSpec); in HcfDhKeyUtilCreateTest()
/base/security/crypto_framework/test/fuzztest/key/asykeygenerator_fuzzer/
H A Dasykeygenerator_fuzzer.cpp1053 static HcfResult ConstructDhCommParamsSpec(int32_t pLen, int32_t skLen, HcfDhCommParamsSpec **spec) in ConstructDhCommParamsSpec() argument
1057 HcfDhKeyUtilCreate(pLen, skLen, &dhCommSpec); in ConstructDhCommParamsSpec()

Completed in 12 milliseconds