Top Description Constructors Methods
org.bouncycastle.crypto.examples

public Class ECJPAKEExample

extends Object
Class Inheritance
Imports
java.math.BigInteger, java.security.SecureRandom, org.bouncycastle.crypto.CryptoException, .Digest, .SavableDigest, org.bouncycastle.crypto.agreement.ecjpake.ECJPAKECurve, .ECJPAKECurves, .ECJPAKEParticipant, .ECJPAKERound1Payload, .ECJPAKERound2Payload, .ECJPAKERound3Payload, org.bouncycastle.crypto.digests.SHA256Digest, org.bouncycastle.math.ec.ECCurve, .ECPoint

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

ECJPAKEExampleback to summary
public ECJPAKEExample()

Method Detail

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