/// <summary> /// Generate the OtherInformation that is to be plugged into a KDF function. /// </summary> /// <param name="otherPartyInformation">The other party's public information</param> /// <returns></returns> protected IOtherInfo GenerateOtherInformation(TOtherPartySharedInfo otherPartyInformation) { var thisPartyPublicInfo = ReturnPublicInfoThisParty(); var thisPartyOtherInfo = new PartyOtherInfo(thisPartyPublicInfo.PartyId, thisPartyPublicInfo.DkmNonce); var otherPartyOtherInfo = new PartyOtherInfo(otherPartyInformation.PartyId, otherPartyInformation.DkmNonce); return(OtherInfoFactory.GetInstance( KdfParameters.OtherInfoPattern, OtherInputLength, SchemeParameters.KeyAgreementRole, thisPartyOtherInfo, otherPartyOtherInfo )); }