港幣

public class HKDF extends Object

HKDF 金鑰衍生函式的 Java 實作項目,如 RFC-5869 中所定義。

公用方法摘要

void
addKeyMaterial(byte[] keyMaterial)
void
void
beginExtractKey(byte[] salt)
byte[]
expandKey(int requestedKeyLen, byte[] info)
void
static HKDF
getInstance(String algorithm)
byte[]
void
reset()

繼承方法摘要

公用方法

public void addKeyMaterial (byte[] keyMaterial)

參數
keyMaterial

public void beginExtractKey ()

public void beginExtractKey (byte[] salt)

參數

public byte[] expandKey (int requestedKeyLen, byte[] info)

參數
requestedKeyLen
資訊

public void finishExtractKey ()

public static HKDF getInstance (String algorithm)

參數
演算法
擲回
NoSuchAlgorithmException

public byte[] pseudoRandomKey ()

public void reset ()