java.lang.Object
org.bouncycastle.pqc.jcajce.provider.util.KdfUtil

public class KdfUtil extends Object
  • Constructor Details

    • KdfUtil

      public KdfUtil()
  • Method Details

    • 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.