Home
last modified time | relevance | path

Searched refs:returnInt (Results 1 – 21 of 21) sorted by relevance

/base/security/crypto_framework/frameworks/spi/
Dsignature_spi.h45 HcfResult (*engineGetSignSpecInt)(HcfSignSpi *self, SignSpecItem item, int32_t *returnInt);
63 HcfResult (*engineGetVerifySpecInt)(HcfVerifySpi *self, SignSpecItem item, int32_t *returnInt);
/base/security/crypto_framework/interfaces/innerkits/crypto_operation/
Dsignature.h50 HcfResult (*getSignSpecInt)(HcfSign *self, SignSpecItem item, int32_t *returnInt);
70 HcfResult (*getVerifySpecInt)(HcfVerify *self, SignSpecItem item, int32_t *returnInt);
/base/security/crypto_framework/interfaces/innerkits/key/
Dpub_key.h32 HcfResult (*getAsyKeySpecInt)(const HcfPubKey *self, const AsyKeySpecItem item, int *returnInt);
Dpri_key.h32 HcfResult (*getAsyKeySpecInt)(const HcfPriKey *self, const AsyKeySpecItem item, int *returnInt);
/base/security/crypto_framework/frameworks/js/napi/crypto/inc/
Dnapi_utils.h63 bool GetInt32FromJSParams(napi_env env, napi_value arg, int32_t &returnInt);
64 bool GetUint32FromJSParams(napi_env env, napi_value arg, uint32_t &returnInt);
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/signature/src/
Dsignature_rsa_openssl.c525 static HcfResult EngineGetSignSpecInt(HcfSignSpi *self, SignSpecItem item, int32_t *returnInt) in EngineGetSignSpecInt() argument
527 if (self == NULL || returnInt == NULL) { in EngineGetSignSpecInt()
545 *returnInt = PSS_TRAILER_FIELD_SUPPORTED_INT; in EngineGetSignSpecInt()
549 *returnInt = impl->saltLen; in EngineGetSignSpecInt()
553 if (Openssl_EVP_PKEY_CTX_get_rsa_pss_saltlen(impl->ctx, returnInt) != HCF_OPENSSL_SUCCESS) { in EngineGetSignSpecInt()
635 static HcfResult EngineGetVerifySpecInt(HcfVerifySpi *self, SignSpecItem item, int32_t *returnInt) in EngineGetVerifySpecInt() argument
637 if (self == NULL || returnInt == NULL) { in EngineGetVerifySpecInt()
655 *returnInt = PSS_TRAILER_FIELD_SUPPORTED_INT; in EngineGetVerifySpecInt()
659 *returnInt = impl->saltLen; in EngineGetVerifySpecInt()
663 if (Openssl_EVP_PKEY_CTX_get_rsa_pss_saltlen(impl->ctx, returnInt) != HCF_OPENSSL_SUCCESS) { in EngineGetVerifySpecInt()
Ddsa_openssl.c502 HcfResult EngineGetSignDsaSpecInt(HcfSignSpi *self, SignSpecItem item, int32_t *returnInt) in EngineGetSignDsaSpecInt() argument
506 (void)returnInt; in EngineGetSignDsaSpecInt()
510 HcfResult EngineGetVerifyDsaSpecInt(HcfVerifySpi *self, SignSpecItem item, int32_t *returnInt) in EngineGetVerifyDsaSpecInt() argument
514 (void)returnInt; in EngineGetVerifyDsaSpecInt()
/base/security/crypto_framework/test/unittest/src/
Dcrypto_dsa_verify_test.cpp98 int32_t returnInt; variable
99 ret = verify->getVerifySpecInt(verify, PSS_SALT_LEN_INT, &returnInt);
Dcrypto_signature_exception_test.cpp175 int32_t returnInt = 0; variable
176 ret = EngineGetSignSpecInt((HcfSignSpi *)&g_obj, PSS_SALT_LEN_INT, &returnInt);
228 int32_t returnInt = 0; variable
229 ret =EngineGetVerifySpecInt((HcfVerifySpi *)&g_obj, PSS_SALT_LEN_INT, &returnInt);
Dcrypto_dsa_sign_test.cpp502 int32_t returnInt; variable
503 ret = sign->getSignSpecInt(sign, PSS_SALT_LEN_INT, &returnInt);
/base/security/crypto_framework/frameworks/crypto_operation/
Dsignature.c270 static HcfResult GetSignSpecInt(HcfSign *self, SignSpecItem item, int32_t *returnInt) in GetSignSpecInt() argument
272 if (self == NULL || returnInt == NULL) { in GetSignSpecInt()
280 return tmpSelf->spiObj->engineGetSignSpecInt(tmpSelf->spiObj, item, returnInt); in GetSignSpecInt()
348 static HcfResult GetVerifySpecInt(HcfVerify *self, SignSpecItem item, int32_t *returnInt) in GetVerifySpecInt() argument
350 if (self == NULL || returnInt == NULL) { in GetVerifySpecInt()
358 return tmpSelf->spiObj->engineGetVerifySpecInt(tmpSelf->spiObj, item, returnInt); in GetVerifySpecInt()
/base/security/crypto_framework/frameworks/js/napi/crypto/src/
Dnapi_pub_key.cpp114 int returnInt = 0; in GetAsyKeySpecNumber() local
115 HcfResult res = pubKey->getAsyKeySpecInt(pubKey, item, &returnInt); in GetAsyKeySpecNumber()
123 napi_create_int32(env, returnInt, &instance); in GetAsyKeySpecNumber()
Dnapi_pri_key.cpp137 int returnInt = 0; in GetAsyKeySpecNumber() local
138 HcfResult res = priKey->getAsyKeySpecInt(priKey, item, &returnInt); in GetAsyKeySpecNumber()
146 napi_create_int32(env, returnInt, &instance); in GetAsyKeySpecNumber()
Dnapi_sign.cpp703 int returnInt; in GetSignSpecNumber() local
704 HcfResult res = sign->getSignSpecInt(sign, item, &returnInt); in GetSignSpecNumber()
712 napi_create_int32(env, returnInt, &instance); in GetSignSpecNumber()
Dnapi_verify.cpp729 int returnInt; in GetVerifySpecNumber() local
730 HcfResult res = verify->getVerifySpecInt(verify, item, &returnInt); in GetVerifySpecNumber()
738 napi_create_int32(env, returnInt, &instance); in GetVerifySpecNumber()
Dnapi_utils.cpp1249 bool GetInt32FromJSParams(napi_env env, napi_value arg, int32_t &returnInt) in GetInt32FromJSParams() argument
1258 if (napi_get_value_int32(env, arg, &returnInt) != napi_ok) { in GetInt32FromJSParams()
1265 bool GetUint32FromJSParams(napi_env env, napi_value arg, uint32_t &returnInt) in GetUint32FromJSParams() argument
1274 if (napi_get_value_uint32(env, arg, &returnInt) != napi_ok) { in GetUint32FromJSParams()
/base/security/certificate_framework/frameworks/js/napi/certificate/inc/
Dnapi_cert_utils.h40 bool CertGetInt32FromJSParams(napi_env env, napi_value arg, int32_t &returnInt);
/base/security/crypto_framework/plugin/openssl_plugin/key/asy_key_generator/src/
Decc_asy_key_generator_openssl.c1140 static HcfResult GetEcKeySpecInt(const HcfKey *self, const AsyKeySpecItem item, int *returnInt) in GetEcKeySpecInt() argument
1142 if (self == NULL || returnInt == NULL) { in GetEcKeySpecInt()
1160 res = GetCofactor(group, returnInt); in GetEcKeySpecInt()
1163 res = GetFieldSize(group, returnInt); in GetEcKeySpecInt()
1184 …atic HcfResult GetECPubKeySpecInt(const HcfPubKey *self, const AsyKeySpecItem item, int *returnInt) in GetECPubKeySpecInt() argument
1186 return GetEcKeySpecInt((HcfKey *)self, item, returnInt); in GetECPubKeySpecInt()
1200 …atic HcfResult GetECPriKeySpecInt(const HcfPriKey *self, const AsyKeySpecItem item, int *returnInt) in GetECPriKeySpecInt() argument
1202 return GetEcKeySpecInt((HcfKey *)self, item, returnInt); in GetECPriKeySpecInt()
Ddsa_asy_key_generator_openssl.c310 …HcfResult GetIntSpecFromDsaPubKey(const HcfPubKey *self, const AsyKeySpecItem item, int *returnInt) in GetIntSpecFromDsaPubKey() argument
313 (void)returnInt; in GetIntSpecFromDsaPubKey()
317 …HcfResult GetIntSpecFromDsaPriKey(const HcfPriKey *self, const AsyKeySpecItem item, int *returnInt) in GetIntSpecFromDsaPriKey() argument
320 (void)returnInt; in GetIntSpecFromDsaPriKey()
Drsa_asy_key_generator_openssl.c131 int *returnInt) in GetRsaPubKeySpecInt() argument
134 (void)returnInt; in GetRsaPubKeySpecInt()
149 int *returnInt) in GetRsaPriKeySpecInt() argument
152 (void)returnInt; in GetRsaPriKeySpecInt()
/base/security/certificate_framework/frameworks/js/napi/certificate/src/
Dnapi_cert_utils.cpp414 bool CertGetInt32FromJSParams(napi_env env, napi_value arg, int32_t &returnInt) in CertGetInt32FromJSParams() argument
424 if (napi_get_value_int32(env, arg, &returnInt) != napi_ok) { in CertGetInt32FromJSParams()