public static final class FipsDH.DHUAgreementParametersBuilder extends FipsParameters
Modifier and Type | Method and Description |
---|---|
FipsDH.DHUAgreementParameters |
using(AsymmetricDHPrivateKey ephemeralPrivateKey,
AsymmetricDHPublicKey otherPartyEphemeralKey)
Constructor for DH DHU parameters which assumes later calculation of our ephemeral public key.
|
FipsDH.DHUAgreementParameters |
using(AsymmetricDHPublicKey ephemeralPublicKey,
AsymmetricDHPrivateKey ephemeralPrivateKey,
AsymmetricDHPublicKey otherPartyEphemeralKey)
Constructor for DH DHU parameters which results in an agreement returning the raw value.
|
FipsDH.DHUAgreementParameters |
using(AsymmetricKeyPair ephemeralKeyPair,
AsymmetricDHPublicKey otherPartyEphemeralKey)
Constructor for DH DHU parameters from an ephemeral public/private key pair.
|
getAlgorithm
public FipsDH.DHUAgreementParameters using(AsymmetricKeyPair ephemeralKeyPair, AsymmetricDHPublicKey otherPartyEphemeralKey)
ephemeralKeyPair
- our ephemeral public/private key pair.otherPartyEphemeralKey
- the other party's ephemeral public key.public FipsDH.DHUAgreementParameters using(AsymmetricDHPrivateKey ephemeralPrivateKey, AsymmetricDHPublicKey otherPartyEphemeralKey)
ephemeralPrivateKey
- our ephemeral private key.otherPartyEphemeralKey
- the other party's ephemeral public key.public FipsDH.DHUAgreementParameters using(AsymmetricDHPublicKey ephemeralPublicKey, AsymmetricDHPrivateKey ephemeralPrivateKey, AsymmetricDHPublicKey otherPartyEphemeralKey)
ephemeralPublicKey
- our ephemeral public key.ephemeralPrivateKey
- our ephemeral private key.otherPartyEphemeralKey
- the other party's ephemeral public key.