gnu.crypto.sasl.srp
public class KDF extends 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.4 $
Method Summary | |
---|---|
byte[] | derive(int length) Returns a designated number of bytes suitable for use in the SASL SRP mechanism. |
static KDF | getInstance(byte[] K) A Factory mehod that returns an instance of a |
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.
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
.