Class HashedDerivedKeyProducer
java.lang.Object
com.exceptionfactory.jagged.framework.crypto.HashedDerivedKeyProducer
Hashed Derived Key Producer using HMAC-based Extract-and-Expand Key Derivation Function described in RFC 5869
-
Constructor Summary
ConstructorsConstructorDescriptionHashed Derived Key Producer default constructor does not set any variables -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]getDerivedKey(SecretKey inputKey, MacKey saltKey, byte[] info) Get Derived Key using HKDF-SHA-256 extracted and expanded from input key
-
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 MaterialsaltKey- Salt Key with encoded byte arrayinfo- 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
-