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

public Class ECJPAKERound2Payload

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

The payload sent/received during the second 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#createRound2PayloadToSend()

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

Field Summary

Modifier and TypeField and Description
private final ECPoint
a

The value of A, as computed during round 2.

private final ECSchnorrZKP
knowledgeProofForX2s

The zero knowledge proof for x2 * s.

private final String
participantId

The id of the ECJPAKEParticipant who created/sent this payload.

Constructor Summary

AccessConstructor and Description
public
ECJPAKERound2Payload(String participantId, ECPoint a, ECSchnorrZKP knowledgeProofForX2s)

Method Summary

Modifier and TypeMethod and Description
public ECPoint
getA()

public ECSchnorrZKP
public String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

aback to summary
private final ECPoint a

The value of A, as computed during round 2.

knowledgeProofForX2sback to summary
private final ECSchnorrZKP knowledgeProofForX2s

The zero knowledge proof for x2 * s.

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

participantIdback to summary
private final String participantId

The id of the ECJPAKEParticipant who created/sent this payload.

Constructor Detail

ECJPAKERound2Payloadback to summary
public ECJPAKERound2Payload(String participantId, ECPoint a, ECSchnorrZKP knowledgeProofForX2s)

Method Detail

getAback to summary
public ECPoint getA()
getKnowledgeProofForX2sback to summary
public ECSchnorrZKP getKnowledgeProofForX2s()
getParticipantIdback to summary
public String getParticipantId()