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.X25519withSHA256HKDF
,KeyAgreementSpi.X25519withSHA256KDF
,KeyAgreementSpi.X25519withSHA384CKDF
,KeyAgreementSpi.X25519withSHA512CKDF
,KeyAgreementSpi.X448
,KeyAgreementSpi.X448UwithSHA512CKDF
,KeyAgreementSpi.X448UwithSHA512KDF
,KeyAgreementSpi.X448withSHA256CKDF
,KeyAgreementSpi.X448withSHA384CKDF
,KeyAgreementSpi.X448withSHA512CKDF
,KeyAgreementSpi.X448withSHA512HKDF
,KeyAgreementSpi.X448withSHA512KDF
,KeyAgreementSpi.XDH
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static class
static class
static final 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
static final class
-
Field Summary
Fields inherited from class org.bouncycastle.jcajce.provider.asymmetric.util.BaseAgreementSpi
kaAlgorithm, kdf, ukmParameters, ukmParametersSalt
-
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]
protected void
doInitFromKey
(Key key, AlgorithmParameterSpec params, SecureRandom secureRandom) protected Key
engineDoPhase
(Key key, boolean lastPhase) Methods inherited from class org.bouncycastle.jcajce.provider.asymmetric.util.BaseAgreementSpi
engineGenerateSecret, engineGenerateSecret, engineGenerateSecret, engineInit, engineInit, getAlgorithm, getKeySize, trimZeroes
-
Method Details
-
doCalcSecret
protected byte[] doCalcSecret()- Specified by:
doCalcSecret
in classBaseAgreementSpi
-
doInitFromKey
protected void doInitFromKey(Key key, AlgorithmParameterSpec params, SecureRandom secureRandom) throws InvalidKeyException, InvalidAlgorithmParameterException - Specified by:
doInitFromKey
in classBaseAgreementSpi
- Throws:
InvalidKeyException
InvalidAlgorithmParameterException
-
engineDoPhase
protected Key engineDoPhase(Key key, boolean lastPhase) throws InvalidKeyException, IllegalStateException - Specified by:
engineDoPhase
in classKeyAgreementSpi
- Throws:
InvalidKeyException
IllegalStateException
-