Package org.bouncycastle.crypto.fips
Class FipsEC.DHUAgreementParametersBuilder
java.lang.Object
org.bouncycastle.crypto.fips.FipsParameters
org.bouncycastle.crypto.fips.FipsEC.DHUAgreementParametersBuilder
- All Implemented Interfaces:
Parameters
- Enclosing class:
- FipsEC
Initial builder for DHU parameters.
-
Method Summary
Modifier and TypeMethodDescriptionusing
(AsymmetricECPrivateKey ephemeralPrivateKey, AsymmetricECPublicKey otherPartyEphemeralKey) Constructor for EC DHU parameters which assumes later calculation of our ephemeral public key.using
(AsymmetricECPublicKey ephemeralPublicKey, AsymmetricECPrivateKey ephemeralPrivateKey, AsymmetricECPublicKey otherPartyEphemeralKey) Constructor for EC DHU parameters which results in an agreement returning the raw value.using
(AsymmetricKeyPair ephemeralKeyPair, AsymmetricECPublicKey otherPartyEphemeralKey) Constructor for EC DHU parameters from an ephemeral public/private key pair.Methods inherited from class org.bouncycastle.crypto.fips.FipsParameters
getAlgorithm
-
Method Details
-
using
public FipsEC.DHUAgreementParameters using(AsymmetricKeyPair ephemeralKeyPair, AsymmetricECPublicKey otherPartyEphemeralKey) Constructor for EC DHU 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 FipsEC.DHUAgreementParameters using(AsymmetricECPrivateKey ephemeralPrivateKey, AsymmetricECPublicKey otherPartyEphemeralKey) Constructor for EC DHU 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 FipsEC.DHUAgreementParameters using(AsymmetricECPublicKey ephemeralPublicKey, AsymmetricECPrivateKey ephemeralPrivateKey, AsymmetricECPublicKey otherPartyEphemeralKey) Constructor for EC DHU 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.
-