Class KdfX9_63
java.lang.Object
io.getlime.security.powerauth.crypto.lib.encryptor.ecies.kdf.KdfX9_63
Implementation of X9.63 KDF function with SHA256 digest type.
- Author:
- Petr Dvorak, petr@wultra.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]derive(byte[] secret, byte[] sharedInfo, int outputBytes) Derive a new key using X9.63 with SHA256 digest.
-
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.
-