KeyAgreementSpi.CDHwithSHA1KDFAndSharedInfo, KeyAgreementSpi.CDHwithSHA224KDFAndSharedInfo, KeyAgreementSpi.CDHwithSHA256KDFAndSharedInfo, KeyAgreementSpi.CDHwithSHA384KDFAndSharedInfo, KeyAgreementSpi.CDHwithSHA512KDFAndSharedInfo, KeyAgreementSpi.DH, KeyAgreementSpi.DHC, KeyAgreementSpi.DHUC, KeyAgreementSpi.DHUwithSHA1CKDF, KeyAgreementSpi.DHUwithSHA1KDF, KeyAgreementSpi.DHUwithSHA224CKDF, KeyAgreementSpi.DHUwithSHA224KDF, KeyAgreementSpi.DHUwithSHA256CKDF, KeyAgreementSpi.DHUwithSHA256KDF, KeyAgreementSpi.DHUwithSHA384CKDF, KeyAgreementSpi.DHUwithSHA384KDF, KeyAgreementSpi.DHUwithSHA512CKDF, KeyAgreementSpi.DHUwithSHA512KDF, KeyAgreementSpi.DHwithSHA1CKDF, KeyAgreementSpi.DHwithSHA1KDF, KeyAgreementSpi.DHwithSHA1KDFAndSharedInfo, KeyAgreementSpi.DHwithSHA224KDFAndSharedInfo, KeyAgreementSpi.DHwithSHA256CKDF, KeyAgreementSpi.DHwithSHA256KDFAndSharedInfo, KeyAgreementSpi.DHwithSHA384CKDF, KeyAgreementSpi.DHwithSHA384KDFAndSharedInfo, KeyAgreementSpi.DHwithSHA512CKDF, KeyAgreementSpi.DHwithSHA512KDFAndSharedInfo, KeyAgreementSpi.ECKAEGwithRIPEMD160KDF, KeyAgreementSpi.ECKAEGwithSHA1KDF, KeyAgreementSpi.ECKAEGwithSHA224KDF, KeyAgreementSpi.ECKAEGwithSHA256KDF, KeyAgreementSpi.ECKAEGwithSHA384KDF, KeyAgreementSpi.ECKAEGwithSHA512KDF, KeyAgreementSpi.MQV, KeyAgreementSpi.MQVwithSHA1CKDF, KeyAgreementSpi.MQVwithSHA1KDF, KeyAgreementSpi.MQVwithSHA1KDFAndSharedInfo, KeyAgreementSpi.MQVwithSHA224CKDF, KeyAgreementSpi.MQVwithSHA224KDF, KeyAgreementSpi.MQVwithSHA224KDFAndSharedInfo, KeyAgreementSpi.MQVwithSHA256CKDF, KeyAgreementSpi.MQVwithSHA256KDF, KeyAgreementSpi.MQVwithSHA256KDFAndSharedInfo, KeyAgreementSpi.MQVwithSHA384CKDF, KeyAgreementSpi.MQVwithSHA384KDF, KeyAgreementSpi.MQVwithSHA384KDFAndSharedInfo, KeyAgreementSpi.MQVwithSHA512CKDF, KeyAgreementSpi.MQVwithSHA512KDF, KeyAgreementSpi.MQVwithSHA512KDFAndSharedInfopublic class KeyAgreementSpi extends BaseAgreementSpi
Also, MQV key agreement per SEC-1
kdf, ukmParameters| Modifier | Constructor | Description |
|---|---|---|
protected |
KeyAgreementSpi(java.lang.String kaAlgorithm,
ECDHCUnifiedAgreement agreement,
DerivationFunction kdf) |
|
protected |
KeyAgreementSpi(java.lang.String kaAlgorithm,
BasicAgreement agreement,
DerivationFunction kdf) |
| Modifier and Type | Method | Description |
|---|---|---|
protected byte[] |
bigIntToBytes(java.math.BigInteger r) |
|
protected byte[] |
calcSecret() |
|
protected java.security.Key |
engineDoPhase(java.security.Key key,
boolean lastPhase) |
|
protected void |
engineInit(java.security.Key key,
java.security.SecureRandom random) |
|
protected void |
engineInit(java.security.Key key,
java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom random) |
engineGenerateSecret, engineGenerateSecret, engineGenerateSecret, getAlgorithm, getKeySize, trimZeroesprotected KeyAgreementSpi(java.lang.String kaAlgorithm,
BasicAgreement agreement,
DerivationFunction kdf)
protected KeyAgreementSpi(java.lang.String kaAlgorithm,
ECDHCUnifiedAgreement agreement,
DerivationFunction kdf)
protected byte[] bigIntToBytes(java.math.BigInteger r)
protected java.security.Key engineDoPhase(java.security.Key key,
boolean lastPhase)
throws java.security.InvalidKeyException,
java.lang.IllegalStateException
engineDoPhase in class javax.crypto.KeyAgreementSpijava.security.InvalidKeyExceptionjava.lang.IllegalStateExceptionprotected 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.KeyAgreementSpijava.security.InvalidKeyExceptionjava.security.InvalidAlgorithmParameterExceptionprotected void engineInit(java.security.Key key,
java.security.SecureRandom random)
throws java.security.InvalidKeyException
engineInit in class javax.crypto.KeyAgreementSpijava.security.InvalidKeyExceptionprotected byte[] calcSecret()
calcSecret in class BaseAgreementSpi