For the latest news and information visit
The GNU Crypto project

gnu.crypto.sasl.srp
Class KDF

java.lang.Object
  extended bygnu.crypto.sasl.srp.KDF

public class KDF
extends java.lang.Object

The SASL-SRP KDF implementation, which is also used, depending on how it was instantiated, as a secure Pseudo Random Number Generator.

Version:
$Revision: 1.3 $

Method Summary
 byte[] derive(int length)
          Returns a designated number of bytes suitable for use in the SASL SRP mechanism.
(package private) static KDF getInstance(byte[] K)
          A Factory mehod that returns an instance of a KDF based on supplied seed data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

static final KDF getInstance(byte[] K)

A Factory mehod that returns an instance of a KDF based on supplied seed data.

Parameters:
K - the SASL SRP shared secret for a KDF to be used for CALG and IALG setup. null otherwise.
Returns:
an instance of a KDF.

derive

public byte[] derive(int length)

Returns a designated number of bytes suitable for use in the SASL SRP mechanism.

Parameters:
length - the number of bytes needed.
Returns:
a byte array containing the generated/selected bytes.

For the latest news and information visit
The GNU Crypto project

Copyright © 2001, 2002, 2003 Free Software Foundation, Inc. All Rights Reserved.