public static final class FipsEC.DHAgreementFactory extends FipsAgreementFactory<FipsEC.AgreementParameters>
Constructor and Description |
---|
DHAgreementFactory() |
Modifier and Type | Method and Description |
---|---|
FipsAgreement<FipsEC.AgreementParameters> |
createAgreement(AsymmetricPrivateKey key,
FipsEC.AgreementParameters parameters)
Return an Agreement operator based on Diffie-Hellman using EC keys.
|
public FipsAgreement<FipsEC.AgreementParameters> createAgreement(AsymmetricPrivateKey key, FipsEC.AgreementParameters parameters)
createAgreement
in interface AgreementFactory<FipsEC.AgreementParameters>
createAgreement
in class FipsAgreementFactory<FipsEC.AgreementParameters>
key
- the private key to initialize the Agreement with.parameters
- the parameters for configuring the agreement.