Package org.bouncycastle.crypto.fips
Class FipsDH.MQVAgreementParametersBuilder
- java.lang.Object
-
- org.bouncycastle.crypto.fips.FipsParameters
-
- org.bouncycastle.crypto.fips.FipsDH.MQVAgreementParametersBuilder
-
- All Implemented Interfaces:
Parameters
- Enclosing class:
- FipsDH
public static final class FipsDH.MQVAgreementParametersBuilder extends FipsParameters
Initial builder for MQV parameters.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FipsDH.MQVAgreementParameters
using(AsymmetricDHPrivateKey ephemeralPrivateKey, AsymmetricDHPublicKey otherPartyEphemeralKey)
Constructor for DH MQV parameters which assumes later calculation of our ephemeral public key.FipsDH.MQVAgreementParameters
using(AsymmetricDHPublicKey ephemeralPublicKey, AsymmetricDHPrivateKey ephemeralPrivateKey, AsymmetricDHPublicKey otherPartyEphemeralKey)
Constructor for DH MQV parameters which results in an agreement returning the raw value.FipsDH.MQVAgreementParameters
using(AsymmetricKeyPair ephemeralKeyPair, AsymmetricDHPublicKey otherPartyEphemeralKey)
Constructor for DH MQV parameters from an ephemeral public/private key pair.-
Methods inherited from class org.bouncycastle.crypto.fips.FipsParameters
getAlgorithm
-
-
-
-
Method Detail
-
using
public FipsDH.MQVAgreementParameters using(AsymmetricKeyPair ephemeralKeyPair, AsymmetricDHPublicKey otherPartyEphemeralKey)
Constructor for DH MQV parameters from an ephemeral public/private key pair. This constructor will result in an agreement which returns the raw calculated agreement value, or shared secret.- Parameters:
ephemeralKeyPair
- our ephemeral public/private key pair.otherPartyEphemeralKey
- the other party's ephemeral public key.
-
using
public FipsDH.MQVAgreementParameters using(AsymmetricDHPrivateKey ephemeralPrivateKey, AsymmetricDHPublicKey otherPartyEphemeralKey)
Constructor for DH MQV parameters which assumes later calculation of our ephemeral public key. This constructor will result in an agreement which returns the raw calculated agreement value, or shared secret.- Parameters:
ephemeralPrivateKey
- our ephemeral private key.otherPartyEphemeralKey
- the other party's ephemeral public key.
-
using
public FipsDH.MQVAgreementParameters using(AsymmetricDHPublicKey ephemeralPublicKey, AsymmetricDHPrivateKey ephemeralPrivateKey, AsymmetricDHPublicKey otherPartyEphemeralKey)
Constructor for DH MQV parameters which results in an agreement returning the raw value.- Parameters:
ephemeralPublicKey
- our ephemeral public key.ephemeralPrivateKey
- our ephemeral private key.otherPartyEphemeralKey
- the other party's ephemeral public key.
-
-