org.bouncycastle.jce.provider.asymmetric.ec
public class KeyAgreement extends javax.crypto.KeyAgreementSpi
Modifier and Type | Class and Description |
---|---|
static class |
KeyAgreement.DH |
static class |
KeyAgreement.DHC |
static class |
KeyAgreement.DHwithSHA1KDF |
Modifier | Constructor and Description |
---|---|
protected |
KeyAgreement(BasicAgreement agreement) |
protected |
KeyAgreement(BasicAgreement agreement,
DerivationFunction kdf) |
Modifier and Type | Method and Description |
---|---|
protected java.security.Key |
engineDoPhase(java.security.Key key,
boolean lastPhase) |
protected byte[] |
engineGenerateSecret() |
protected int |
engineGenerateSecret(byte[] sharedSecret,
int offset) |
protected javax.crypto.SecretKey |
engineGenerateSecret(java.lang.String algorithm) |
protected void |
engineInit(java.security.Key key,
java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom random) |
protected void |
engineInit(java.security.Key key,
java.security.SecureRandom random) |
protected KeyAgreement(BasicAgreement agreement)
protected KeyAgreement(BasicAgreement agreement, DerivationFunction kdf)
protected java.security.Key engineDoPhase(java.security.Key key, boolean lastPhase) throws java.security.InvalidKeyException, java.lang.IllegalStateException
engineDoPhase
in class javax.crypto.KeyAgreementSpi
java.security.InvalidKeyException
java.lang.IllegalStateException
protected byte[] engineGenerateSecret() throws java.lang.IllegalStateException
engineGenerateSecret
in class javax.crypto.KeyAgreementSpi
java.lang.IllegalStateException
protected int engineGenerateSecret(byte[] sharedSecret, int offset) throws java.lang.IllegalStateException, javax.crypto.ShortBufferException
engineGenerateSecret
in class javax.crypto.KeyAgreementSpi
java.lang.IllegalStateException
javax.crypto.ShortBufferException
protected javax.crypto.SecretKey engineGenerateSecret(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException
engineGenerateSecret
in class javax.crypto.KeyAgreementSpi
java.security.NoSuchAlgorithmException
protected void engineInit(java.security.Key key, java.security.spec.AlgorithmParameterSpec params, java.security.SecureRandom random) throws java.security.InvalidKeyException, java.security.InvalidAlgorithmParameterException
engineInit
in class javax.crypto.KeyAgreementSpi
java.security.InvalidKeyException
java.security.InvalidAlgorithmParameterException
protected void engineInit(java.security.Key key, java.security.SecureRandom random) throws java.security.InvalidKeyException
engineInit
in class javax.crypto.KeyAgreementSpi
java.security.InvalidKeyException