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

public Class JPAKERound1Payload

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

The payload sent/received during the first 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#createRound1PayloadToSend().

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

Field Summary

Modifier and TypeField and Description
private final BigInteger
gx1

The value of g^x1

private final BigInteger
gx2

The value of g^x2

private final BigInteger[]
knowledgeProofForX1

The zero knowledge proof for x1.

private final BigInteger[]
knowledgeProofForX2

The zero knowledge proof for x2.

private final String
participantId

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

Constructor Summary

AccessConstructor and Description
public
JPAKERound1Payload(String participantId, BigInteger gx1, BigInteger gx2, BigInteger[] knowledgeProofForX1, BigInteger[] knowledgeProofForX2)

Method Summary

Modifier and TypeMethod and Description
public BigInteger
public BigInteger
public BigInteger[]
public BigInteger[]
public String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

gx1back to summary
private final BigInteger gx1

The value of g^x1

gx2back to summary
private final BigInteger gx2

The value of g^x2

knowledgeProofForX1back to summary
private final BigInteger[] knowledgeProofForX1

The zero knowledge proof for x1.

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

knowledgeProofForX2back to summary
private final BigInteger[] knowledgeProofForX2

The zero knowledge proof for x2.

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

participantIdback to summary
private final String participantId

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

Constructor Detail

JPAKERound1Payloadback to summary
public JPAKERound1Payload(String participantId, BigInteger gx1, BigInteger gx2, BigInteger[] knowledgeProofForX1, BigInteger[] knowledgeProofForX2)

Method Detail

getGx1back to summary
public BigInteger getGx1()
getGx2back to summary
public BigInteger getGx2()
getKnowledgeProofForX1back to summary
public BigInteger[] getKnowledgeProofForX1()
getKnowledgeProofForX2back to summary
public BigInteger[] getKnowledgeProofForX2()
getParticipantIdback to summary
public String getParticipantId()