public class ECMVQKeyAgreementHelper extends KeyAgreementSpi
TestECMQVVectors| Constructor and Description |
|---|
ECMVQKeyAgreementHelper(ECPrivateKey privateKey,
ECPublicKey publicKey)
Constructs a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected Key |
engineDoPhase(Key key,
boolean lastPhase) |
protected byte[] |
engineGenerateSecret() |
protected int |
engineGenerateSecret(byte[] sharedSecret,
int offset) |
protected SecretKey |
engineGenerateSecret(String algorithm) |
protected void |
engineInit(Key key,
AlgorithmParameterSpec params,
SecureRandom random) |
protected void |
engineInit(Key key,
SecureRandom random) |
public ECMVQKeyAgreementHelper(ECPrivateKey privateKey, ECPublicKey publicKey)
privateKey - the ephemeral private keypublicKey - the ephemeral public keyprotected Key engineDoPhase(Key key, boolean lastPhase) throws InvalidKeyException, IllegalStateException
engineDoPhase in class KeyAgreementSpiInvalidKeyExceptionIllegalStateExceptionprotected byte[] engineGenerateSecret()
throws IllegalStateException
engineGenerateSecret in class KeyAgreementSpiIllegalStateExceptionprotected SecretKey engineGenerateSecret(String algorithm) throws IllegalStateException, InvalidKeyException
engineGenerateSecret in class KeyAgreementSpiIllegalStateExceptionInvalidKeyExceptionprotected int engineGenerateSecret(byte[] sharedSecret,
int offset)
throws IllegalStateException,
ShortBufferException
engineGenerateSecret in class KeyAgreementSpiIllegalStateExceptionShortBufferExceptionprotected void engineInit(Key key, SecureRandom random) throws InvalidKeyException
engineInit in class KeyAgreementSpiInvalidKeyExceptionprotected void engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException
engineInit in class KeyAgreementSpiInvalidKeyExceptionInvalidAlgorithmParameterExceptionCopyright © 2011–2022 Stiftung SIC. All rights reserved.