Home
last modified time | relevance | path

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

/base/security/device_auth/services/protocol/src/pake_protocol/pake_protocol_ec_common/
H A Dpake_protocol_ec_common.c35 if (params->curveType == CURVE_256) { in GenerateEsk()
37 } else if (params->curveType == CURVE_25519) { in GenerateEsk()
48 LOGE("Unsupported curve: %d.", params->curveType); in GenerateEsk()
58 uint32_t keyBufferLen = (params->curveType == CURVE_256) ? (params->innerKeyLen * 2) : (params->innerKeyLen); in InitEcPakeParams()
91 Algorithm alg = (params->curveType == CURVE_256) ? P256 : X25519; in GenerateEcPakeParams()
117 uint32_t validKeyBufferLen = (params->curveType == CURVE_256) ? (PAKE_EC_KEY_LEN * 2) : (PAKE_EC_KEY_LEN); in AgreeEcSharedSecret()
124 Algorithm alg = (params->curveType == CURVE_256) ? P256 : X25519; in AgreeEcSharedSecret()
/base/security/device_auth/services/session_manager/inc/session/v2/auth_sub_session/protocol_lib/
H A Dec_speke_protocol.h29 int32_t curveType; member
/base/security/device_auth/services/session_manager/src/session/v2/auth_sub_session/protocol_lib/
H A Dec_speke_protocol.c57 EcSpekeCurveType curveType; member
224 if (params->curveType == CURVE_TYPE_256) { in EcSpekeCalBase()
228 } else if (params->curveType == CURVE_TYPE_25519) { in EcSpekeCalBase()
232 LOGE("Unsupported curve type: %d", params->curveType); in EcSpekeCalBase()
255 if (params->curveType == CURVE_TYPE_256) { in EcSpekeCalEskSelf()
261 } else if (params->curveType == CURVE_TYPE_25519) { in EcSpekeCalEskSelf()
271 LOGE("Unsupported curve type: %d", params->curveType); in EcSpekeCalEskSelf()
282 if (params->curveType == CURVE_TYPE_256) { in EcSpekeCalEpkSelf()
286 } else if (params->curveType == CURVE_TYPE_25519) { in EcSpekeCalEpkSelf()
290 LOGE("Unsupported curve type: %d", params->curveType); in EcSpekeCalEpkSelf()
1127 IsCurveTypeValid(int32_t curveType) IsCurveTypeValid() argument
[all...]
/base/security/device_auth/services/legacy/authenticators/inc/account_related/
H A Daccount_version_util.h50 CurveType curveType; member
/base/security/device_auth/services/protocol/inc/pake_protocol/
H A Dpake_defs.h69 CurveType curveType; // default: CURVE_NONE member
/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/pake_task/standard_exchange_task/
H A Dcommon_standard_bind_exchange.c101 Algorithm alg = (pakeParams->baseParams.curveType == CURVE_256) ? P256 : ED25519; in GenerateKeyPairIfNotExist()
202 Algorithm alg = (pakeParams->baseParams.curveType == CURVE_256) ? P256 : ED25519; in GenerateSignInfo()
382 Algorithm alg = (pakeParams->baseParams.curveType == CURVE_256) ? P256 : ED25519; in VerifySignInfo()
417 Algorithm alg = (pakeParams->baseParams.curveType == CURVE_256) ? P256 : ED25519; in SaveAuthInfo()
/base/security/device_auth/services/legacy/authenticators/src/account_related/auth/pake_v2_auth_task/
H A Dpake_v2_auth_task_common.c435 params->pakeParams.curveType = verInfo->curveType; in InitPakeAuthParams()
/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/pake_task/
H A Dpake_task_common.c301 params->baseParams.curveType = CURVE_25519; in FillDasPakeParams()
/base/security/device_auth/services/key_agree_sdk/src/
H A Dkey_agree_session.c755 spekeSession->baseParam.curveType = CURVE_256; in InitSpekeSession()
760 spekeSession->baseParam.curveType = CURVE_25519; in InitSpekeSession()
/base/security/device_auth/services/protocol/src/pake_protocol/pake_v2_protocol/
H A Dpake_v2_protocol_common.c139 params->curveType = CURVE_NONE; in FillDefaultValue()
387 tmpSharedSecret.length = (params->curveType == CURVE_256) ? (params->innerKeyLen * 2) : (params->innerKeyLen); in GenerateSharedSecret()
/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/creds_manager/
H A Ddas_standard_token_manager.c299 Algorithm alg = (params->baseParams.curveType == CURVE_256) ? P256 : ED25519; in ComputeAndSavePskInner()
/base/security/device_auth/services/protocol/src/pake_protocol/pake_v1_protocol/
H A Dpake_v1_protocol_common.c145 params->curveType = CURVE_NONE; in FillDefaultValue()
/base/security/device_auth/services/session_manager/src/session/v2/
H A Ddev_session_v2.c1066 EcSpekeCurveType curveType = (cred->proofType == CERTIFICATED) ? CURVE_TYPE_256 : CURVE_TYPE_25519; in CreateEcSpekeSubSession() local
1078 EcSpekeInitParams params = { curveType, authIdBuff, osAccountId }; in CreateEcSpekeSubSession()

Completed in 16 milliseconds