Package org.bouncycastle.crypto.fips
Class FipsEC.DHAgreementFactory
java.lang.Object
org.bouncycastle.crypto.fips.FipsAgreementFactory<FipsEC.AgreementParameters>
org.bouncycastle.crypto.fips.FipsEC.DHAgreementFactory
- All Implemented Interfaces:
AgreementFactory<FipsEC.AgreementParameters>
- Enclosing class:
- FipsEC
public static final class FipsEC.DHAgreementFactory
extends FipsAgreementFactory<FipsEC.AgreementParameters>
Factory for Agreement operators based on EC Diffie-Hellman and Cofactor Diffie-Hellman.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAgreement
(AsymmetricPrivateKey key, FipsEC.AgreementParameters parameters) Return an Agreement operator based on Diffie-Hellman using EC keys.
-
Constructor Details
-
DHAgreementFactory
public DHAgreementFactory()
-
-
Method Details
-
createAgreement
public FipsAgreement<FipsEC.AgreementParameters> createAgreement(AsymmetricPrivateKey key, FipsEC.AgreementParameters parameters) Return an Agreement operator based on Diffie-Hellman using EC keys.- Specified by:
createAgreement
in interfaceAgreementFactory<FipsEC.AgreementParameters>
- Specified by:
createAgreement
in classFipsAgreementFactory<FipsEC.AgreementParameters>
- Parameters:
key
- the private key to initialize the Agreement with.parameters
- the parameters for configuring the agreement.- Returns:
- a new Agreement operator for EC DH.
-