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