Class KdfUtil
- java.lang.Object
-
- org.bouncycastle.pqc.jcajce.provider.util.KdfUtil
-
public class KdfUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description KdfUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
makeKeyBytes(KEMKDFSpec kdfSpec, byte[] secret)
Generate a byte[] secret key from the passed in secret.
-
-
-
Method Detail
-
makeKeyBytes
public static byte[] makeKeyBytes(KEMKDFSpec kdfSpec, byte[] secret)
Generate a byte[] secret key from the passed in secret. Note: passed in secret will be erased after use.- Parameters:
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).- Returns:
- a generated secret key.
-
-