All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bouncycastle.crypto.agreement.ecjpake.ECSchnorrZKP Maven / Gradle / Ivy

Go to download

The Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms. This jar contains JCE provider and lightweight API for the Bouncy Castle Cryptography APIs for JDK 1.4.

The newest version!
package org.bouncycastle.crypto.agreement.ecjpake;

import java.math.BigInteger;

import org.bouncycastle.math.ec.ECPoint;

/**
 * Package protected class containing zero knowledge proof, for an EC J-PAKE exchange.
 * 

* This class encapsulates the values involved in the Schnorr * zero-knowledge proof used in the EC J-PAKE protocol. *

*/ public class ECSchnorrZKP { /** * The value of V = G x [v]. */ private final ECPoint V; /** * The value of r = v - d * c mod n */ private final BigInteger r; ECSchnorrZKP(ECPoint V, BigInteger r) { this.V = V; this.r = r; } public ECPoint getV() { return V; } public BigInteger getr() { return r; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy