Class ECJPAKERound1Payload
- java.lang.Object
-
- org.bouncycastle.crypto.agreement.ecjpake.ECJPAKERound1Payload
-
public class ECJPAKERound1Payload extends java.lang.Object
The payload sent/received during the first round of a EC J-PAKE exchange.Each
ECJPAKEParticipant
creates and sends an instance of this payload to the otherECJPAKEParticipant
. The payload to send should be created viaECJPAKEParticipant.createRound1PayloadToSend()
.Each
ECJPAKEParticipant
must also validate the payload received from the otherECJPAKEParticipant
. The received payload should be validated viaECJPAKEParticipant.validateRound1PayloadReceived(ECJPAKERound1Payload)
.
-
-
Constructor Summary
Constructors Constructor Description ECJPAKERound1Payload(java.lang.String participantId, ECPoint gx1, ECPoint gx2, ECSchnorrZKP knowledgeProofForX1, ECSchnorrZKP knowledgeProofForX2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ECPoint
getGx1()
ECPoint
getGx2()
ECSchnorrZKP
getKnowledgeProofForX1()
ECSchnorrZKP
getKnowledgeProofForX2()
java.lang.String
getParticipantId()
-
-
-
Constructor Detail
-
ECJPAKERound1Payload
public ECJPAKERound1Payload(java.lang.String participantId, ECPoint gx1, ECPoint gx2, ECSchnorrZKP knowledgeProofForX1, ECSchnorrZKP knowledgeProofForX2)
-
-
Method Detail
-
getParticipantId
public java.lang.String getParticipantId()
-
getGx1
public ECPoint getGx1()
-
getGx2
public ECPoint getGx2()
-
getKnowledgeProofForX1
public ECSchnorrZKP getKnowledgeProofForX1()
-
getKnowledgeProofForX2
public ECSchnorrZKP getKnowledgeProofForX2()
-
-