|
Bouncy Castle Cryptography Library 1.81 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.crypto.KeyAgreementSpi
org.bouncycastle.jcajce.provider.asymmetric.util.BaseAgreementSpi
org.bouncycastle.jcajce.provider.asymmetric.ec.KeyAgreementSpi
Diffie-Hellman key agreement using elliptic curve keys, ala IEEE P1363 both the simple one, and the simple one with cofactors are supported.
Also, MQV key agreement per SEC-1
| Field Summary |
| Fields inherited from class org.bouncycastle.jcajce.provider.asymmetric.util.BaseAgreementSpi |
kdf, ukmParameters, ukmParametersSalt |
| Constructor Summary | |
protected |
KeyAgreementSpi(java.lang.String kaAlgorithm,
BasicAgreement agreement,
DerivationFunction kdf)
|
protected |
KeyAgreementSpi(java.lang.String kaAlgorithm,
ECDHCUnifiedAgreement agreement,
DerivationFunction kdf)
|
| Method Summary | |
protected byte[] |
bigIntToBytes(java.math.BigInteger r)
|
protected byte[] |
doCalcSecret()
|
protected void |
doInitFromKey(java.security.Key key,
java.security.spec.AlgorithmParameterSpec parameterSpec,
java.security.SecureRandom random)
|
protected java.security.Key |
engineDoPhase(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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected KeyAgreementSpi(java.lang.String kaAlgorithm,
BasicAgreement agreement,
DerivationFunction kdf)
protected KeyAgreementSpi(java.lang.String kaAlgorithm,
ECDHCUnifiedAgreement agreement,
DerivationFunction kdf)
| Method Detail |
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
java.security.InvalidKeyException
java.lang.IllegalStateException
protected void doInitFromKey(java.security.Key key,
java.security.spec.AlgorithmParameterSpec parameterSpec,
java.security.SecureRandom random)
throws java.security.InvalidKeyException,
java.security.InvalidAlgorithmParameterException
doInitFromKey in class BaseAgreementSpijava.security.InvalidKeyException
java.security.InvalidAlgorithmParameterExceptionprotected byte[] doCalcSecret()
doCalcSecret in class BaseAgreementSpi
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||