org.bouncycastle.jcajce.provider.asymmetric.edec
Class KeyAgreementSpi
java.lang.Object
|
+--javax.crypto.KeyAgreementSpi
|
+--org.bouncycastle.jcajce.provider.asymmetric.util.BaseAgreementSpi
|
+--org.bouncycastle.jcajce.provider.asymmetric.edec.KeyAgreementSpi
- Direct Known Subclasses:
- KeyAgreementSpi.X25519, KeyAgreementSpi.X25519UwithSHA256CKDF, KeyAgreementSpi.X25519UwithSHA256KDF, KeyAgreementSpi.X25519withSHA256CKDF, KeyAgreementSpi.X25519withSHA256KDF, KeyAgreementSpi.X25519withSHA384CKDF, KeyAgreementSpi.X25519withSHA512CKDF, KeyAgreementSpi.X448, KeyAgreementSpi.X448UwithSHA512CKDF, KeyAgreementSpi.X448UwithSHA512KDF, KeyAgreementSpi.X448withSHA256CKDF, KeyAgreementSpi.X448withSHA384CKDF, KeyAgreementSpi.X448withSHA512CKDF, KeyAgreementSpi.X448withSHA512KDF, KeyAgreementSpi.XDH
- public class KeyAgreementSpi
- extends BaseAgreementSpi
Method Summary |
protected byte[] |
calcSecret()
|
protected java.security.Key |
engineDoPhase(java.security.Key key,
boolean lastPhase)
|
protected void |
engineInit(java.security.Key key,
java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom secureRandom)
|
protected void |
engineInit(java.security.Key key,
java.security.SecureRandom secureRandom)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
calcSecret
protected byte[] calcSecret()
- Overrides:
calcSecret
in class BaseAgreementSpi
engineInit
protected void engineInit(java.security.Key key,
java.security.SecureRandom secureRandom)
throws java.security.InvalidKeyException
- Overrides:
engineInit
in class javax.crypto.KeyAgreementSpi
engineInit
protected void engineInit(java.security.Key key,
java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom secureRandom)
throws java.security.InvalidKeyException,
java.security.InvalidAlgorithmParameterException
- Overrides:
engineInit
in class javax.crypto.KeyAgreementSpi
engineDoPhase
protected java.security.Key engineDoPhase(java.security.Key key,
boolean lastPhase)
throws java.security.InvalidKeyException,
java.lang.IllegalStateException
- Overrides:
engineDoPhase
in class javax.crypto.KeyAgreementSpi