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
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 |
---|