Logo Search packages:      
Sourcecode: libgnucrypto-java version File versions  Download package

gnu::crypto::sasl::srp::SRP Class Reference

List of all members.


Detailed Description

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.

Version:
Revision
1.5

Definition at line 61 of file SRP.java.


Public Member Functions

byte[] computeX (final byte[] s, final String user, final byte[] p) throws UnsupportedEncodingException
byte[] computeX (final byte[] s, final String user, final String password) throws UnsupportedEncodingException
byte[] digest (final String src) throws UnsupportedEncodingException
byte[] digest (final byte[] src)
byte[] generateKn (final byte[] K, final byte[] cn, final byte[] sn)
byte[] generateM1 (final BigInteger N, final BigInteger g, final String U, final byte[] s, final BigInteger A, final BigInteger B, final byte[] K, final String I, final String L, final byte[] cn, final byte[] cCB) throws UnsupportedEncodingException
byte[] generateM2 (final BigInteger A, final byte[] M1, final byte[] K, final String U, final String I, final String o, final byte[] sid, final int ttl, final byte[] cIV, final byte[] sIV, final byte[] sCB) throws UnsupportedEncodingException
String getAlgorithm ()
IMessageDigest newDigest ()
byte[] xor (final byte[] a, final byte[] b)

Static Public Member Functions

static synchronized SRP instance (String mdName)

Private Member Functions

byte[] computeX (final byte[] s, final byte[] user, final byte[] p)
 SRP (final IMessageDigest mda)

Static Private Member Functions

static final byte[] xor (final byte[] b1, final byte[] b2, final int length)

Private Attributes

IMessageDigest mda

Static Private Attributes

static final HashMap algorithms = new HashMap()
static final byte COLON = (byte) 0x3A

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index