Class KdfUtil
java.lang.Object
org.bouncycastle.pqc.jcajce.provider.util.KdfUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
makeKeyBytes
(KEMKDFSpec kdfSpec, byte[] secret) Generate a byte[] secret key from the passed in secret.
-
Constructor Details
-
KdfUtil
public KdfUtil()
-
-
Method Details
-
makeKeyBytes
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.
-