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 D | iso_protocol.c | 99 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 D | dl_speke_protocol.c | 532 …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 D | ec_speke_protocol.c | 509 …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 D | auth_sub_session.c | 103 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 D | auth_sub_session.h | 35 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 D | base_protocol.h | 25 Uint8Buff selfMsg; member
|