org.gudy.bouncycastle.crypto.agreement.srp
Class SRP6Util
java.lang.Object
org.gudy.bouncycastle.crypto.agreement.srp.SRP6Util
public class SRP6Util
- extends Object
Method Summary |
static BigInteger |
calculateK(Digest digest,
BigInteger N,
BigInteger g)
|
static BigInteger |
calculateU(Digest digest,
BigInteger N,
BigInteger A,
BigInteger B)
|
static BigInteger |
calculateX(Digest digest,
BigInteger N,
byte[] salt,
byte[] identity,
byte[] password)
|
static BigInteger |
generatePrivateValue(Digest digest,
BigInteger N,
BigInteger g,
SecureRandom random)
|
static BigInteger |
validatePublicValue(BigInteger N,
BigInteger val)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SRP6Util
public SRP6Util()
calculateK
public static BigInteger calculateK(Digest digest,
BigInteger N,
BigInteger g)
calculateU
public static BigInteger calculateU(Digest digest,
BigInteger N,
BigInteger A,
BigInteger B)
calculateX
public static BigInteger calculateX(Digest digest,
BigInteger N,
byte[] salt,
byte[] identity,
byte[] password)
generatePrivateValue
public static BigInteger generatePrivateValue(Digest digest,
BigInteger N,
BigInteger g,
SecureRandom random)
validatePublicValue
public static BigInteger validatePublicValue(BigInteger N,
BigInteger val)
throws CryptoException
- Throws:
CryptoException