Top Description Fields Constructors Methods
org.bouncycastle.crypto.agreement.ecjpake

public Class ECJPAKERound1Payload

extends Object
Class Inheritance
Imports
org.bouncycastle.math.ec.ECPoint

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 other ECJPAKEParticipant. The payload to send should be created via ECJPAKEParticipant#createRound1PayloadToSend().

Each ECJPAKEParticipant must also validate the payload received from the other ECJPAKEParticipant. The received payload should be validated via ECJPAKEParticipant#validateRound1PayloadReceived(ECJPAKERound1Payload).

Field Summary

Modifier and TypeField and Description
private final ECPoint
gx1

The value of g^x1

private final ECPoint
gx2

The value of g^x2

private final ECSchnorrZKP
knowledgeProofForX1

The zero knowledge proof for x1.

private final ECSchnorrZKP
knowledgeProofForX2

The zero knowledge proof for x2.

private final String

Constructor Summary

AccessConstructor and Description
public
ECJPAKERound1Payload(String participantId, ECPoint gx1, ECPoint gx2, ECSchnorrZKP knowledgeProofForX1, ECSchnorrZKP knowledgeProofForX2)

Method Summary

Modifier and TypeMethod and Description
public ECPoint
public ECPoint
public ECSchnorrZKP
public ECSchnorrZKP
public String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

gx1back to summary
private final ECPoint gx1

The value of g^x1

gx2back to summary
private final ECPoint gx2

The value of g^x2

knowledgeProofForX1back to summary
private final ECSchnorrZKP knowledgeProofForX1

The zero knowledge proof for x1.

This is a class ECSchnorrZKP with two fields, containing {g^v, r} for x1.

knowledgeProofForX2back to summary
private final ECSchnorrZKP knowledgeProofForX2

The zero knowledge proof for x2.

This is a class ECSchnorrZKP with two fields, containing {g^v, r} for x2.

participantIdback to summary
private final String participantId

Constructor Detail

ECJPAKERound1Payloadback to summary
public ECJPAKERound1Payload(String participantId, ECPoint gx1, ECPoint gx2, ECSchnorrZKP knowledgeProofForX1, ECSchnorrZKP knowledgeProofForX2)

Method Detail

getGx1back to summary
public ECPoint getGx1()
getGx2back to summary
public ECPoint getGx2()
getKnowledgeProofForX1back to summary
public ECSchnorrZKP getKnowledgeProofForX1()
getKnowledgeProofForX2back to summary
public ECSchnorrZKP getKnowledgeProofForX2()
getParticipantIdback to summary
public String getParticipantId()