org.gudy.bouncycastle.crypto.agreement.srp
Class SRP6Util

java.lang.Object
  extended by org.gudy.bouncycastle.crypto.agreement.srp.SRP6Util

public class SRP6Util
extends Object


Constructor Summary
SRP6Util()
           
 
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
 

Constructor Detail

SRP6Util

public SRP6Util()
Method Detail

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