public class HKDF extends Object
Java implementation of the HKDF key derivation function, as defined in RFC-5869.
Public Method Summary
void |
addKeyMaterial(byte[] keyMaterial)
|
void | |
void |
beginExtractKey(byte[] salt)
|
byte[] |
expandKey(int requestedKeyLen, byte[] info)
|
void | |
static HKDF |
getInstance(String algorithm)
|
byte[] | |
void |
reset()
|
Inherited Method Summary
Object |
clone()
|
boolean |
equals(Object arg0)
|
void |
finalize()
|
final Class<?> |
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String |
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
Public Methods
public void addKeyMaterial (byte[] keyMaterial)
Parameters
keyMaterial |
---|
public void beginExtractKey ()
public void beginExtractKey (byte[] salt)
Parameters
salt |
---|
public byte[] expandKey (int requestedKeyLen, byte[] info)
Parameters
requestedKeyLen | |
---|---|
info |
public void finishExtractKey ()
public static HKDF getInstance (String algorithm)
Parameters
algorithm |
---|
Throws
NoSuchAlgorithmException |
---|