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,KeyAgreementSpi.XDHwithSHA256HKDF,KeyAgreementSpi.XDHwithSHA384HKDF,KeyAgreementSpi.XDHwithSHA512HKDF
public class KeyAgreementSpi extends BaseAgreementSpi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKeyAgreementSpi.X25519static classKeyAgreementSpi.X25519UwithSHA256CKDFstatic classKeyAgreementSpi.X25519UwithSHA256KDFstatic classKeyAgreementSpi.X25519withSHA256CKDFstatic classKeyAgreementSpi.X25519withSHA256HKDFstatic classKeyAgreementSpi.X25519withSHA256KDFstatic classKeyAgreementSpi.X25519withSHA384CKDFstatic classKeyAgreementSpi.X25519withSHA512CKDFstatic classKeyAgreementSpi.X448static classKeyAgreementSpi.X448UwithSHA512CKDFstatic classKeyAgreementSpi.X448UwithSHA512KDFstatic classKeyAgreementSpi.X448withSHA256CKDFstatic classKeyAgreementSpi.X448withSHA384CKDFstatic classKeyAgreementSpi.X448withSHA512CKDFstatic classKeyAgreementSpi.X448withSHA512HKDFstatic classKeyAgreementSpi.X448withSHA512KDFstatic classKeyAgreementSpi.XDHstatic classKeyAgreementSpi.XDHwithSHA256HKDFstatic classKeyAgreementSpi.XDHwithSHA384HKDFstatic classKeyAgreementSpi.XDHwithSHA512HKDF
-
Field Summary
-
Fields inherited from class org.bouncycastle.jcajce.provider.asymmetric.util.BaseAgreementSpi
kaAlgorithm, kdf, ukmParameters, ukmParametersSalt
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected byte[]doCalcSecret()protected voiddoInitFromKey(java.security.Key key, java.security.spec.AlgorithmParameterSpec params, java.security.SecureRandom secureRandom)protected java.security.KeyengineDoPhase(java.security.Key key, boolean lastPhase)-
Methods inherited from class org.bouncycastle.jcajce.provider.asymmetric.util.BaseAgreementSpi
engineGenerateSecret, engineGenerateSecret, engineGenerateSecret, engineInit, engineInit, getAlgorithm, getKeySize, trimZeroes
-
-
-
-
Method Detail
-
doCalcSecret
protected byte[] doCalcSecret()
- Specified by:
doCalcSecretin classBaseAgreementSpi
-
doInitFromKey
protected void doInitFromKey(java.security.Key key, java.security.spec.AlgorithmParameterSpec params, java.security.SecureRandom secureRandom) throws java.security.InvalidKeyException, java.security.InvalidAlgorithmParameterException- Specified by:
doInitFromKeyin classBaseAgreementSpi- Throws:
java.security.InvalidKeyExceptionjava.security.InvalidAlgorithmParameterException
-
engineDoPhase
protected java.security.Key engineDoPhase(java.security.Key key, boolean lastPhase) throws java.security.InvalidKeyException, java.lang.IllegalStateException- Specified by:
engineDoPhasein classjavax.crypto.KeyAgreementSpi- Throws:
java.security.InvalidKeyExceptionjava.lang.IllegalStateException
-
-