public final class X963KeyDerivationFunction extends Object implements KeyDerivationFunction
References:
[1] ANSI X9.63-2001, "American National Standard for Financial Services - Key Agreement and Key Transport Using Elliptic Curve Cryptography" , November 2001.
[2] Certicom Research. 2009. Standards for Efficient Cryptography - SEC 1: Elliptic Curve Cryptography v2.0
Constructor and Description |
---|
X963KeyDerivationFunction() |
Modifier and Type | Method and Description |
---|---|
byte[] |
engineGenerateKey(byte[] secret)
Derives the symmetric key from a shared secret and returns it.
|
byte[] |
engineGenerateKey(byte[] secret,
int keyLength)
Derives the symmetric key from a shared secret and returns it.
|
void |
engineInit(KDFParameterSpec params)
Initializes this KDF.
|
public void engineInit(KDFParameterSpec params)
KeyDerivationFunction
engineInit
in interface KeyDerivationFunction
params
- the KDF parameterspublic byte[] engineGenerateKey(byte[] secret)
KeyDerivationFunction
engineGenerateKey
in interface KeyDerivationFunction
secret
- the secret, from which the key is going to be derivedpublic byte[] engineGenerateKey(byte[] secret, int keyLength)
KeyDerivationFunction
engineGenerateKey
in interface KeyDerivationFunction
secret
- the secret, from which the key is going to be derivedkeyLength
- the length of the key in bitsCopyright © 2011–2022 Stiftung SIC. All rights reserved.