public static final class FipsEC.DHUAgreementParameters extends FipsAgreementParameters
Modifier and Type | Method and Description |
---|---|
AsymmetricECPrivateKey |
getEphemeralPrivateKey()
Return our ephemeral private key.
|
AsymmetricECPublicKey |
getEphemeralPublicKey()
Return our ephemeral public key, if present.
|
AsymmetricECPublicKey |
getOtherPartyEphemeralKey()
Return the other party's ephemeral public key.
|
FipsEC.DHUAgreementParameters |
withDigest(FipsAlgorithm digestAlgorithm)
Add a digest algorithm to process the Z value with.
|
FipsEC.DHUAgreementParameters |
withKDF(FipsKDF.AgreementKDFParametersBuilder kdfType,
byte[] iv,
int outputSize)
Add a KDF to process the Z value with.
|
FipsEC.DHUAgreementParameters |
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 AsymmetricECPublicKey getEphemeralPublicKey()
public AsymmetricECPrivateKey getEphemeralPrivateKey()
public AsymmetricECPublicKey getOtherPartyEphemeralKey()
public FipsEC.DHUAgreementParameters withDigest(FipsAlgorithm digestAlgorithm)
digestAlgorithm
- digest algorithm to use.public FipsEC.DHUAgreementParameters withPRF(FipsKDF.PRF prfAlgorithm, byte[] salt)
prfAlgorithm
- PRF represent the MAC/HMAC algorithm to use.salt
- the salt to use to initialise the PRFpublic FipsEC.DHUAgreementParameters withKDF(FipsKDF.AgreementKDFParametersBuilder kdfType, byte[] iv, int outputSize)
kdfType
- KDF builder 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.