Class HashedDerivedKeyProducer

java.lang.Object
com.exceptionfactory.jagged.framework.crypto.HashedDerivedKeyProducer

public class HashedDerivedKeyProducer extends Object
Hashed Derived Key Producer using HMAC-based Extract-and-Expand Key Derivation Function described in RFC 5869
  • Constructor Details

    • HashedDerivedKeyProducer

      public HashedDerivedKeyProducer()
      Hashed Derived Key Producer default constructor does not set any variables
  • Method Details

    • getDerivedKey

      protected byte[] getDerivedKey(SecretKey inputKey, MacKey saltKey, byte[] info) throws GeneralSecurityException
      Get Derived Key using HKDF-SHA-256 extracted and expanded from input key
      Parameters:
      inputKey - Input Key Material
      saltKey - Salt Key with encoded byte array
      info - Application Information
      Returns:
      Key derived from RFC 5869 Sections 2.2 and 2.3 extract and expand
      Throws:
      GeneralSecurityException - Thrown on key derivation processing failures