JPakeRound3Payload
The payload sent/received during the optional third round of a J-PAKE exchange,
which is for explicit key confirmation.
Each JPAKEParticipant creates and sends an instance
of this payload to the other JPAKEParticipant.
The payload to send should be created via
JPAKEParticipant#createRound3PayloadToSend(BigInteger)
Eeach JPAKEParticipant must also validate the payload
received from the other JPAKEParticipant.
The received payload should be validated via
JPAKEParticipant#validateRound3PayloadReceived(JPakeRound3Payload, BigInteger)
using Org.BouncyCastle.Math;
namespace Org.BouncyCastle.Crypto.Agreement.JPake
{
public class JPakeRound3Payload
{
private readonly string participantId;
private readonly BigInteger macTag;
public virtual string ParticipantId => participantId;
public virtual BigInteger MacTag => macTag;
public JPakeRound3Payload(string participantId, BigInteger magTag)
{
this.participantId = participantId;
macTag = magTag;
}
}
}