Package org.jose4j.jwe.kdf
Class ConcatKeyDerivationFunction
java.lang.Object
org.jose4j.jwe.kdf.ConcatKeyDerivationFunction
- All Implemented Interfaces:
ConcatenationKeyDerivationFunctionWithSha256
public class ConcatKeyDerivationFunction
extends Object
implements ConcatenationKeyDerivationFunctionWithSha256
An implementation of Concatenation Key Derivation Function (aka Concat KDF or ConcatKDF)
from Section 5.8.1 of National Institute of Standards and Technology (NIST),
"Recommendation for Pair-Wise Key Establishment Schemes Using Discrete Logarithm Cryptography",
NIST Special Publication 800-56A, Revision 2, May 2013.
-
Constructor Summary
ConstructorsConstructorDescriptionConcatKeyDerivationFunction
(String hashAlgoritm) ConcatKeyDerivationFunction
(String hashAlgoritm, String provider) -
Method Summary
-
Constructor Details
-
ConcatKeyDerivationFunction
-
ConcatKeyDerivationFunction
-
-
Method Details
-
kdf
public byte[] kdf(byte[] sharedSecret, int keydatalen, byte[] algorithmId, byte[] partyUInfo, byte[] partyVInfo, byte[] suppPubInfo, byte[] suppPrivInfo) -
kdf
public byte[] kdf(byte[] sharedSecret, int keydatalen, byte[] otherInfo) - Specified by:
kdf
in interfaceConcatenationKeyDerivationFunctionWithSha256
-