| 
 | For the latest news and information visit The GNU Crypto project | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectgnu.crypto.sasl.srp.SRP
A Factory class that returns SRP Singletons that know all SRP-related mathematical computations and protocol-related operations for both the client- and server-sides.
| Method Summary | |
|  byte[] | digest(byte[] src)Convenience method to return the result of digesting the designated input with a new instance of the SRP message digest algorithm. | 
|  byte[] | digest(java.lang.String src)Convenience method to return the result of digesting the designated input with a new instance of the SRP message digest algorithm. | 
|  byte[] | generateKn(byte[] K,
           byte[] cn,
           byte[] sn) | 
|  byte[] | generateM1(java.math.BigInteger N,
           java.math.BigInteger g,
           java.lang.String U,
           byte[] s,
           java.math.BigInteger A,
           java.math.BigInteger B,
           byte[] K,
           java.lang.String I,
           java.lang.String L) | 
|  byte[] | generateM2(java.math.BigInteger A,
           byte[] M,
           byte[] K,
           java.lang.String U,
           java.lang.String I,
           java.lang.String o,
           java.lang.String sid,
           int ttl,
           byte[] cIV,
           byte[] sIV) | 
|  java.lang.String | getAlgorithm() | 
| static SRP | instance(java.lang.String mdName)Returns an instance of this object that uses the designated message digest algorithm as its digest function. | 
|  IMessageDigest | newDigest()Returns a new instance of the SRP message digest algorithm --which is SHA-160 by default, but could be anything else provided the proper conditions as specified in the SRP specifications. | 
|  byte[] | xor(byte[] a,
    byte[] b)Convenience method to XOR N bytes from two arrays; N being the output size of the SRP message digest algorithm. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
public static SRP instance(java.lang.String mdName)
public java.lang.String getAlgorithm()
public IMessageDigest newDigest()
java.lang.RuntimeException - if the implementation of the message digest
 algorithm does not support cloning.public byte[] digest(byte[] src)
src - some bytes to digest.
public byte[] digest(java.lang.String src)
src - a String whose bytes (using the default platform encoding) are
 to be digested.
public byte[] xor(byte[] a,
                  byte[] b)
a - the first byte array.b - the second one.
public byte[] generateM2(java.math.BigInteger A,
                         byte[] M,
                         byte[] K,
                         java.lang.String U,
                         java.lang.String I,
                         java.lang.String o,
                         java.lang.String sid,
                         int ttl,
                         byte[] cIV,
                         byte[] sIV)
public byte[] generateM1(java.math.BigInteger N,
                         java.math.BigInteger g,
                         java.lang.String U,
                         byte[] s,
                         java.math.BigInteger A,
                         java.math.BigInteger B,
                         byte[] K,
                         java.lang.String I,
                         java.lang.String L)
public byte[] generateKn(byte[] K,
                         byte[] cn,
                         byte[] sn)
| 
 | For the latest news and information visit The GNU Crypto project | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||