Top Description Constructors Methods
org.bouncycastle.crypto.examples

public Class JPAKEExample

extends Object
Class Inheritance
Imports
java.math.BigInteger, java.security.SecureRandom, org.bouncycastle.crypto.CryptoException, .Digest, .SavableDigest, org.bouncycastle.crypto.agreement.jpake.JPAKEParticipant, .JPAKEPrimeOrderGroup, .JPAKEPrimeOrderGroups, .JPAKERound1Payload, .JPAKERound2Payload, .JPAKERound3Payload, org.bouncycastle.crypto.digests.SHA256Digest

An example of a J-PAKE exchange.

In this example, both Alice and Bob are on the same computer (in the same JVM, in fact). In reality, Alice and Bob would be in different locations, and would be sending their generated payloads to each other.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static BigInteger
deriveSessionKey(BigInteger keyingMaterial)

public static void
main(String[] args)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

JPAKEExampleback to summary
public JPAKEExample()

Method Detail

deriveSessionKeyback to summary
private static BigInteger deriveSessionKey(BigInteger keyingMaterial)
mainback to summary
public static void main(String[] args) throws CryptoException