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

public Class JPAKERound2Payload

extends Object
Class Inheritance
Imports
java.math.BigInteger, org.bouncycastle.util.Arrays

The payload sent/received during the second round of a J-PAKE exchange.

Each JPAKEParticipant creates and sends an instance of this payload to the other JPAKEParticipant. The payload to send should be created via JPAKEParticipant#createRound2PayloadToSend()

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

Field Summary

Modifier and TypeField and Description
private final BigInteger
a

The value of A, as computed during round 2.

private final BigInteger[]
knowledgeProofForX2s

The zero knowledge proof for x2 * s.

private final String
participantId

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

Constructor Summary

AccessConstructor and Description
public
JPAKERound2Payload(String participantId, BigInteger a, BigInteger[] knowledgeProofForX2s)

Method Summary

Modifier and TypeMethod and Description
public BigInteger
getA()

public BigInteger[]
public String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

aback to summary
private final BigInteger a

The value of A, as computed during round 2.

knowledgeProofForX2sback to summary
private final BigInteger[] knowledgeProofForX2s

The zero knowledge proof for x2 * s.

This is a two element array, containing {g^v, r} for x2 * s.

participantIdback to summary
private final String participantId

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

Constructor Detail

JPAKERound2Payloadback to summary
public JPAKERound2Payload(String participantId, BigInteger a, BigInteger[] knowledgeProofForX2s)

Method Detail

getAback to summary
public BigInteger getA()
getKnowledgeProofForX2sback to summary
public BigInteger[] getKnowledgeProofForX2s()
getParticipantIdback to summary
public String getParticipantId()