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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
static class
static class
static final class
static final class
static class
static class
static final class
static class
static class
static final class
static class
static final class
static final class
static final class
-
Field Summary
Fields inherited from class org.bouncycastle.jcajce.provider.asymmetric.util.BaseAgreementSpi
kaAlgorithm, kdf, ukmParameters
-
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]
protected Key
engineDoPhase
(Key key, boolean lastPhase) protected void
engineInit
(Key key, SecureRandom secureRandom) protected void
engineInit
(Key key, AlgorithmParameterSpec params, SecureRandom secureRandom) Methods inherited from class org.bouncycastle.jcajce.provider.asymmetric.util.BaseAgreementSpi
engineGenerateSecret, engineGenerateSecret, engineGenerateSecret, getAlgorithm, getKeySize, trimZeroes
-
Method Details
-
calcSecret
protected byte[] calcSecret()- Specified by:
calcSecret
in classBaseAgreementSpi
-
engineInit
- Specified by:
engineInit
in classKeyAgreementSpi
- Throws:
InvalidKeyException
-
engineInit
protected void engineInit(Key key, AlgorithmParameterSpec params, SecureRandom secureRandom) throws InvalidKeyException, InvalidAlgorithmParameterException - Specified by:
engineInit
in classKeyAgreementSpi
- Throws:
InvalidKeyException
InvalidAlgorithmParameterException
-
engineDoPhase
protected Key engineDoPhase(Key key, boolean lastPhase) throws InvalidKeyException, IllegalStateException - Specified by:
engineDoPhase
in classKeyAgreementSpi
- Throws:
InvalidKeyException
IllegalStateException
-