public class DHUParameterSpec extends Object implements AlgorithmParameterSpec
Constructor and Description |
---|
DHUParameterSpec(KeyPair ephemeralKeyPair,
PublicKey otherPartyEphemeralKey)
Base constructor for a Diffie-Hellman unified model using a key pair without user keying material.
|
DHUParameterSpec(KeyPair ephemeralKeyPair,
PublicKey otherPartyEphemeralKey,
byte[] userKeyingMaterial)
Base constructor for a Diffie-Hellman unified model using a key pair.
|
DHUParameterSpec(PrivateKey ephemeralPrivateKey,
PublicKey otherPartyEphemeralKey)
Base constructor for a Diffie-Hellman unified model - calculation of our ephemeral public key
is required and no user keying material is provided.
|
DHUParameterSpec(PrivateKey ephemeralPrivateKey,
PublicKey otherPartyEphemeralKey,
byte[] userKeyingMaterial)
Base constructor for a Diffie-Hellman unified model - calculation of our ephemeral public key
is required.
|
DHUParameterSpec(PublicKey ephemeralPublicKey,
PrivateKey ephemeralPrivateKey,
PublicKey otherPartyEphemeralKey)
Base constructor for a Diffie-Hellman unified model without user keying material.
|
DHUParameterSpec(PublicKey ephemeralPublicKey,
PrivateKey ephemeralPrivateKey,
PublicKey otherPartyEphemeralKey,
byte[] userKeyingMaterial)
Base constructor for a Diffie-Hellman unified model.
|
Modifier and Type | Method and Description |
---|---|
PrivateKey |
getEphemeralPrivateKey()
Return our ephemeral private key.
|
PublicKey |
getEphemeralPublicKey()
Return our ephemeral public key, null if it was not provided.
|
PublicKey |
getOtherPartyEphemeralKey()
Return the ephemeral other party public key.
|
byte[] |
getUserKeyingMaterial()
Return a copy of the user keying material, null if none is available.
|
public DHUParameterSpec(PublicKey ephemeralPublicKey, PrivateKey ephemeralPrivateKey, PublicKey otherPartyEphemeralKey, byte[] userKeyingMaterial)
ephemeralPublicKey
- our ephemeral public key.ephemeralPrivateKey
- our ephemeral private key.otherPartyEphemeralKey
- the ephemeral public key sent by the other party.userKeyingMaterial
- key generation material to mix with the calculated secret.public DHUParameterSpec(PublicKey ephemeralPublicKey, PrivateKey ephemeralPrivateKey, PublicKey otherPartyEphemeralKey)
ephemeralPublicKey
- our ephemeral public key.ephemeralPrivateKey
- our ephemeral private key.otherPartyEphemeralKey
- the ephemeral public key sent by the other party.public DHUParameterSpec(KeyPair ephemeralKeyPair, PublicKey otherPartyEphemeralKey, byte[] userKeyingMaterial)
ephemeralKeyPair
- our ephemeral public and private key.otherPartyEphemeralKey
- the ephemeral public key sent by the other party.userKeyingMaterial
- key generation material to mix with the calculated secret.public DHUParameterSpec(PrivateKey ephemeralPrivateKey, PublicKey otherPartyEphemeralKey, byte[] userKeyingMaterial)
ephemeralPrivateKey
- our ephemeral private key.otherPartyEphemeralKey
- the ephemeral public key sent by the other party.userKeyingMaterial
- key generation material to mix with the calculated secret.public DHUParameterSpec(KeyPair ephemeralKeyPair, PublicKey otherPartyEphemeralKey)
ephemeralKeyPair
- our ephemeral public and private key.otherPartyEphemeralKey
- the ephemeral public key sent by the other party.public DHUParameterSpec(PrivateKey ephemeralPrivateKey, PublicKey otherPartyEphemeralKey)
ephemeralPrivateKey
- our ephemeral private key.otherPartyEphemeralKey
- the ephemeral public key sent by the other party.public PrivateKey getEphemeralPrivateKey()
public PublicKey getEphemeralPublicKey()
public PublicKey getOtherPartyEphemeralKey()
public byte[] getUserKeyingMaterial()
Copyright © 2020 BouncyCastle.org. All rights reserved.