Home
last modified time | relevance | path

Searched refs:selfMsg (Results 1 – 6 of 6) sorted by relevance

/ohos5.0/base/security/device_auth/services/session_manager/src/session/v2/auth_sub_session/protocol_lib/
H A Diso_protocol.c99 if (msg->selfMsg.length > 0 && msg->selfMsg.val != NULL) { in BuildSelfTokenMessage()
100 …if (memcpy_s(message + usedLen, messageLen - usedLen, msg->selfMsg.val, msg->selfMsg.length) != EO… in BuildSelfTokenMessage()
104 usedLen += msg->selfMsg.length; in BuildSelfTokenMessage()
146 if (msg->selfMsg.length > 0 && msg->selfMsg.val != NULL) { in BuildPeerTokenMessage()
147 …if (memcpy_s(message + usedLen, messageLen - usedLen, msg->selfMsg.val, msg->selfMsg.length) != EO… in BuildPeerTokenMessage()
161 msg->selfMsg.length + msg->peerMsg.length; in IsoCalToken()
783 static int32_t SetIsoSelfProtectedMsg(BaseProtocol *self, const Uint8Buff *selfMsg) in SetIsoSelfProtectedMsg() argument
785 if ((self == NULL) || !IsUint8BuffValid(selfMsg, PROTECTED_MSG_MAX_LEN)) { in SetIsoSelfProtectedMsg()
789 if (DeepCopyUint8Buff(selfMsg, &self->protectedMsg.selfMsg) != HC_SUCCESS) { in SetIsoSelfProtectedMsg()
829 ClearFreeUint8Buff(&impl->base.protectedMsg.selfMsg); in DestroyIsoProtocol()
H A Ddl_speke_protocol.c532 …tProtectedMsg = isVerify ? &(impl->base.protectedMsg.peerMsg) : &(impl->base.protectedMsg.selfMsg); in CombineProtectedMsg()
533 …Uint8Buff *secondProtectedMsg = isVerify ? &(impl->base.protectedMsg.selfMsg) : &(impl->base.prote… in CombineProtectedMsg()
593 SHA256_LEN + impl->params.innerKeyLen + impl->base.protectedMsg.selfMsg.length + in CalKcfDataSelf()
621 SHA256_LEN + impl->params.innerKeyLen + impl->base.protectedMsg.selfMsg.length + in VerifyKcfDataPeer()
1044 static int32_t SetDlSpekeSelfProtectedMsg(BaseProtocol *self, const Uint8Buff *selfMsg) in SetDlSpekeSelfProtectedMsg() argument
1046 if ((self == NULL) || !IsUint8BuffValid(selfMsg, PROTECTED_MSG_MAX_LEN)) { in SetDlSpekeSelfProtectedMsg()
1050 if (DeepCopyUint8Buff(selfMsg, &self->protectedMsg.selfMsg) != HC_SUCCESS) { in SetDlSpekeSelfProtectedMsg()
1090 ClearFreeUint8Buff(&impl->base.protectedMsg.selfMsg); in DestroyDlSpekeProtocol()
H A Dec_speke_protocol.c509 …tProtectedMsg = isVerify ? &(impl->base.protectedMsg.peerMsg) : &(impl->base.protectedMsg.selfMsg); in CombineProtectedMsg()
510 …Uint8Buff *secondProtectedMsg = isVerify ? &(impl->base.protectedMsg.selfMsg) : &(impl->base.prote… in CombineProtectedMsg()
574 SHA256_LEN + EC_SPEKE_EC_KEY_LEN + impl->base.protectedMsg.selfMsg.length + in CalKcfDataSelf()
607 SHA256_LEN + EC_SPEKE_EC_KEY_LEN + impl->base.protectedMsg.selfMsg.length + in VerifyKcfDataPeer()
1027 static int32_t SetEcSpekeSelfProtectedMsg(BaseProtocol *self, const Uint8Buff *selfMsg) in SetEcSpekeSelfProtectedMsg() argument
1029 if ((self == NULL) || !IsUint8BuffValid(selfMsg, PROTECTED_MSG_MAX_LEN)) { in SetEcSpekeSelfProtectedMsg()
1033 if (DeepCopyUint8Buff(selfMsg, &self->protectedMsg.selfMsg) != HC_SUCCESS) { in SetEcSpekeSelfProtectedMsg()
1073 ClearFreeUint8Buff(&impl->base.protectedMsg.selfMsg); in DestroyEcSpekeProtocol()
/ohos5.0/base/security/device_auth/services/session_manager/src/session/v2/auth_sub_session/
H A Dauth_sub_session.c103 static int32_t SetSelfProtectedMsg(AuthSubSession *self, const Uint8Buff *selfMsg) in SetSelfProtectedMsg() argument
105 if ((self == NULL) || (selfMsg == NULL)) { in SetSelfProtectedMsg()
110 return impl->instance->setSelfProtectedMsg(impl->instance, selfMsg); in SetSelfProtectedMsg()
/ohos5.0/base/security/device_auth/services/session_manager/inc/session/v2/auth_sub_session/
H A Dauth_sub_session.h35 int32_t (*setSelfProtectedMsg)(AuthSubSession *self, const Uint8Buff *selfMsg);
/ohos5.0/base/security/device_auth/services/session_manager/inc/session/v2/auth_sub_session/protocol_lib/
H A Dbase_protocol.h25 Uint8Buff selfMsg; member