public static final class FipsDH.MQVAgreementParameters extends FipsAgreementParameters
Modifier and Type | Method and Description |
---|---|
AsymmetricDHPrivateKey |
getEphemeralPrivateKey()
Return our ephemeral private key.
|
AsymmetricDHPublicKey |
getEphemeralPublicKey()
Return our ephemeral public key, if present.
|
AsymmetricDHPublicKey |
getOtherPartyEphemeralKey()
Return the other party's ephemeral public key.
|
FipsDH.MQVAgreementParameters |
withDigest(FipsAlgorithm digestAlgorithm)
Add a digest algorithm to process the Z value with.
|
FipsDH.MQVAgreementParameters |
withKDF(FipsKDF.AgreementKDFParametersBuilder kdfType,
byte[] iv,
int outputSize)
Add a KDF to process the Z value with.
|
FipsDH.MQVAgreementParameters |
withPRF(FipsKDF.PRF prfAlgorithm,
byte[] salt)
Add a PRF algorithm and salt to process the Z value with (as in SP 800-56C)
|
getDigestAlgorithm, getPrfAlgorithm, getSalt
getAlgorithm
public AsymmetricDHPublicKey getEphemeralPublicKey()
public AsymmetricDHPrivateKey getEphemeralPrivateKey()
public AsymmetricDHPublicKey getOtherPartyEphemeralKey()
public FipsDH.MQVAgreementParameters withDigest(FipsAlgorithm digestAlgorithm)
digestAlgorithm
- digest algorithm to use.public FipsDH.MQVAgreementParameters withPRF(FipsKDF.PRF prfAlgorithm, byte[] salt)
prfAlgorithm
- PRF represent the MAC/HMAC algorithm to use.salt
- the salt to use to initialise the PRFpublic FipsDH.MQVAgreementParameters withKDF(FipsKDF.AgreementKDFParametersBuilder kdfType, byte[] iv, int outputSize)
kdfType
- KDF algorithm type to use for parameter creation.iv
- the iv parameter for KDF initialization.outputSize
- the size of the output to be generated from the KDF.