public class KdfUtil
extends java.lang.Object
Constructor and Description |
---|
KdfUtil() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
makeKeyBytes(KEMKDFSpec kdfSpec,
byte[] secret)
Generate a byte[] secret key from the passed in secret.
|
public static byte[] makeKeyBytes(KEMKDFSpec kdfSpec, byte[] secret)
kdfSpec
- definition of the KDF and the output size to produce.secret
- the secret value to initialize the KDF with (erased after secret key generation).