public class EcdhWithX963KdfParamSpec
extends java.lang.Object
implements java.security.spec.AlgorithmParameterSpec
EcdhWithX963KdfParamSpec implements AlgorithmParameterSpec for specifying
parameters for ECDH key agreement with X9.63 Key Derivation Function (KDF).
This class provides the necessary parameters for deriving keys using the X9.63 KDF scheme with ECDH key agreement. It allows specification of shared information and key attributes that will be used during the key derivation process.
The key attributes specify the characteristics of the derived key, while the shared information provides additional data that will be incorporated into the key derivation.
AlgorithmParameterSpec,
KeyAttributesMap| Constructor and Description |
|---|
EcdhWithX963KdfParamSpec(byte[] sharedInfo,
KeyAttributesMap keyAttributes)
Constructs a new instance with the specified shared information and key attributes.
|
| Modifier and Type | Method and Description |
|---|---|
KeyAttributesMap |
getKeyAttributes()
Returns the key attributes for the derived key.
|
byte[] |
getSharedInfo()
Returns the shared information used in key derivation.
|
public EcdhWithX963KdfParamSpec(byte[] sharedInfo,
KeyAttributesMap keyAttributes)
throws java.security.InvalidParameterException
sharedInfo - Additional shared information for key derivationkeyAttributes - Attributes for the derived keyjava.security.InvalidParameterException - when keyAttributes is null, when keyAttributes does not
contain a SIZE attribute, or when sharedInfo is null or empty. These validations ensure
proper key derivation parameters are provided.public byte[] getSharedInfo()
public KeyAttributesMap getKeyAttributes()