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