Save This Page
Home » crypto-143 » org.bouncycastle.crypto.agreement.srp » [javadoc | source]
org.bouncycastle.crypto.agreement.srp
public class: SRP6Client [javadoc | source]
java.lang.Object
   org.bouncycastle.crypto.agreement.srp.SRP6Client
Implements the client side SRP-6a protocol. Note that this class is stateful, and therefore NOT threadsafe. This implementation of SRP is based on the optimized message sequence put forth by Thomas Wu in the paper "SRP-6: Improvements and Refinements to the Secure Remote Password Protocol, 2002"
Field Summary
protected  BigInteger N     
protected  BigInteger g     
protected  BigInteger a     
protected  BigInteger A     
protected  BigInteger B     
protected  BigInteger x     
protected  BigInteger u     
protected  BigInteger S     
protected  Digest digest     
protected  SecureRandom random     
Constructor:
 public SRP6Client() 
Method from org.bouncycastle.crypto.agreement.srp.SRP6Client Summary:
calculateSecret,   generateClientCredentials,   init,   selectPrivateValue
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.bouncycastle.crypto.agreement.srp.SRP6Client Detail:
 public BigInteger calculateSecret(BigInteger serverB) throws CryptoException 
    Generates client's verification message given the server's credentials
 public BigInteger generateClientCredentials(byte[] salt,
    byte[] identity,
    byte[] password) 
    Generates client's credentials given the client's salt, identity and password
 public  void init(BigInteger N,
    BigInteger g,
    Digest digest,
    SecureRandom random) 
    Initialises the client to begin new authentication attempt
 protected BigInteger selectPrivateValue()