Home
last modified time | relevance | path

Searched refs:InitSingleParam (Results 1 – 15 of 15) sorted by relevance

/ohos5.0/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/pake_task/standard_exchange_task/
H A Dstandard_exchange_message_util.c80 res = InitSingleParam(cipher, exAuthInfoLen - nonce->length); in ParseNonceAndCipherFromJson()
98 int res = InitSingleParam(&(params->baseParams.challengeSelf), PAKE_CHALLENGE_LEN); in GenerateSelfChallenge()
113 int res = InitSingleParam(&(params->baseParams.challengePeer), PAKE_CHALLENGE_LEN); in GetPeerChallenge()
H A Dcommon_standard_bind_exchange.c148 res = InitSingleParam(&(exchangeParams->authInfo), HcStrlen(authInfoStr)); in PackageAuthInfo()
241 res = InitSingleParam(&(exchangeParams->exInfoCipher), exchangeInfo.length + AE_TAG_LEN); in EncryptAuthAndSignInfo()
307 res = InitSingleParam(&(exchangeParams->authInfo), exchangeInfo.length - SIGNATURE_LEN); in DecryptAuthAndSignInfo()
/ohos5.0/base/security/device_auth/services/protocol/src/pake_protocol/pake_protocol_ec_common/
H A Dpake_protocol_ec_common.c59 int32_t res = InitSingleParam(&(params->eskSelf), params->eskSelf.length); in InitEcPakeParams()
64 res = InitSingleParam(&(params->epkSelf), keyBufferLen); in InitEcPakeParams()
69 res = InitSingleParam(&(params->base), keyBufferLen); in InitEcPakeParams()
/ohos5.0/base/security/device_auth/services/legacy/authenticators/src/account_related/auth/pake_v2_auth_task/
H A Dpake_v2_auth_task_common.c133 if (InitSingleParam(param, len + 1) != HC_SUCCESS) { in InitCharStringBuff()
332 if (InitSingleParam(&params->pkInfoPeer, len) != HC_SUCCESS) { in GetPkInfoPeer()
369 if (InitSingleParam(&params->pkInfoSelf, pkInfoLen) != HC_SUCCESS) { in GetAsyPubKeyInfo()
422 GOTO_IF_ERR(InitSingleParam(&params->pakeParams.epkPeer, P256_PUBLIC_SIZE)); in InitPakeAuthParams()
423 GOTO_IF_ERR(InitSingleParam(&params->pkInfoSignSelf, SIGNATURE_SIZE)); in InitPakeAuthParams()
424 GOTO_IF_ERR(InitSingleParam(&params->pkInfoSignPeer, SIGNATURE_SIZE)); in InitPakeAuthParams()
425 GOTO_IF_ERR(InitSingleParam(&params->pakeParams.idSelf, deviceIdLen + 1)); in InitPakeAuthParams()
/ohos5.0/base/security/device_auth/services/protocol/src/pake_protocol/pake_protocol_dl_common/
H A Dpake_protocol_dl_common.c107 res = InitSingleParam(&(params->eskSelf), params->eskSelf.length); in InitDlPakeParams()
112 res = InitSingleParam(&(params->epkSelf), params->innerKeyLen); in InitDlPakeParams()
117 res = InitSingleParam(&(params->base), params->innerKeyLen); in InitDlPakeParams()
/ohos5.0/base/security/device_auth/services/legacy/authenticators/src/account_related/auth/iso_auth_task/
H A Diso_auth_task_common.c73 int32_t res = InitSingleParam(&params->devIdSelf, DEV_AUTH_DEVICE_ID_SIZE); in FillPayload()
104 … res = InitSingleParam(&params->isoBaseParams.authIdSelf, params->isoBaseParams.authIdSelf.length); in FillPayload()
152 res = InitSingleParam(outKey, AUTH_TOKEN_SIZE_BYTE); in GenerateAuthTokenForAccessory()
172 int32_t res = InitSingleParam(authTokenAlias, SHA256_LEN); in GenerateTokenAliasForController()
337 …int32_t res = InitSingleParam(&(params->isoBaseParams.authIdPeer), HcStrlen(payloadHex) / BYTE_TO_… in ExtractPeerAuthId()
/ohos5.0/base/security/device_auth/services/protocol/inc/
H A Dprotocol_common.h34 int32_t InitSingleParam(Uint8Buff *param, uint32_t len);
/ohos5.0/base/security/device_auth/services/protocol/src/
H A Dprotocol_common.c33 int32_t InitSingleParam(Uint8Buff *param, uint32_t len) in InitSingleParam() function
/ohos5.0/base/security/device_auth/services/key_agree_sdk/src/
H A Dkey_agree_session.c60 int32_t res = InitSingleParam(authIdPeer, authIdLen); in GetIdPeer()
302 …int32_t res = InitSingleParam(&(baseParams->epkPeer), HcStrlen(epkPeerHex) / BYTE_TO_HEX_OPER_LENG… in GetDasEpkPeerFromJson()
378 res = InitSingleParam(&(spekeSession->baseParam.extraData), versionStrLength); in FillExtraData()
404 … int32_t res = InitSingleParam(&(spekeSession->baseParam.psk), spekeSession->sharedSecret.length); in FillPskAndDeviceId()
416 res = InitSingleParam(&(spekeSession->baseParam.idSelf), spekeSession->deviceId.length); in FillPskAndDeviceId()
H A Dkey_agree_sdk.c112 if (InitSingleParam(&(spekeSession->sharedSecret), sharedSecret->length) != HC_SUCCESS) { in InitKeyAgreeStartSessionParams()
123 if (InitSingleParam(&(spekeSession->deviceId), deviceId->length) != HC_SUCCESS) { in InitKeyAgreeStartSessionParams()
/ohos5.0/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/pake_task/
H A Dpake_message_util.c117 …int res = InitSingleParam(&(params->baseParams.epkPeer), HcStrlen(epkPeerHex) / BYTE_TO_HEX_OPER_L… in GetDasEpkPeerFromJson()
H A Dpake_task_common.c125 int res = InitSingleParam(&(params->baseParams.psk), HcStrlen(pinString)); in FillPskWithPin()
/ohos5.0/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/pake_task/pake_v1_task/pake_v1_protocol_task/
H A Dpake_v1_protocol_task_common.c83 res = InitSingleParam(&params->returnKey, params->returnKey.length); in AllocReturnKey()
246 … int res = InitSingleParam(&(params->baseParams.psk), PAKE_PSK_LEN * BYTE_TO_HEX_OPER_LENGTH + 1); in ConvertPakeV1Psk()
/ohos5.0/base/security/device_auth/services/protocol/src/pake_protocol/pake_v1_protocol/
H A Dpake_v1_protocol_common.c266 int32_t res = InitSingleParam(&params->sharedSecret, params->innerKeyLen); in GenerateSessionKey()
/ohos5.0/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/common/
H A Ddas_task_common.c475 int32_t res = InitSingleParam(authIdPeer, authIdLen); in GetIdPeer()