java.lang.Object
io.getlime.security.powerauth.crypto.lib.encryptor.ecies.kdf.KdfX9_63

public class KdfX9_63 extends Object
Implementation of X9.63 KDF function with SHA256 digest type.
Author:
Petr Dvorak, petr@wultra.com
  • Constructor Details

    • KdfX9_63

      public KdfX9_63()
  • Method Details

    • derive

      public static byte[] derive(byte[] secret, byte[] sharedInfo, int outputBytes) throws GenericCryptoException
      Derive a new key using X9.63 with SHA256 digest.
      Parameters:
      secret - Secret key to be used as the derivation base key.
      sharedInfo - Extra information used for derived key computation.
      outputBytes - Requested size of the key.
      Returns:
      Derived key using the X9.63 KDF with SHA256 digest.
      Throws:
      GenericCryptoException - In case key derivation fails.