Bouncy Castle Cryptography Library 1.79

org.bouncycastle.pqc.jcajce.provider.util
Class KdfUtil

java.lang.Object
  |
  +--org.bouncycastle.pqc.jcajce.provider.util.KdfUtil

public class KdfUtil
extends java.lang.Object


Constructor Summary
KdfUtil()
           
 
Method Summary
static byte[] makeKeyBytes(KEMKDFSpec kdfSpec, byte[] secret)
          Generate a byte[] secret key from the passed in secret.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KdfUtil

public KdfUtil()
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.

Bouncy Castle Cryptography Library 1.79