|
Bouncy Castle Cryptography Library 1.66 | |||||||||
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 |
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[] |
calcSecret()
|
protected java.security.Key |
engineDoPhase(java.security.Key key,
boolean lastPhase)
|
protected void |
engineInit(java.security.Key key,
java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom random)
|
protected void |
engineInit(java.security.Key key,
java.security.SecureRandom random)
|
Methods inherited from class org.bouncycastle.jcajce.provider.asymmetric.util.BaseAgreementSpi |
engineGenerateSecret, engineGenerateSecret, engineGenerateSecret, 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 engineInit(java.security.Key key, java.security.spec.AlgorithmParameterSpec params, java.security.SecureRandom random) throws java.security.InvalidKeyException, java.security.InvalidAlgorithmParameterException
java.security.InvalidKeyException
java.security.InvalidAlgorithmParameterException
protected void engineInit(java.security.Key key, java.security.SecureRandom random) throws java.security.InvalidKeyException
java.security.InvalidKeyException
protected byte[] calcSecret()
calcSecret
in class BaseAgreementSpi
|
Bouncy Castle Cryptography Library 1.66 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |