|
Bouncy Castle Cryptography Library 1.77.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.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
Fields inherited from class org.bouncycastle.jcajce.provider.asymmetric.util.BaseAgreementSpi |
kaAlgorithm, 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[] |
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
engineDoPhase
in class javax.crypto.KeyAgreementSpi
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 BaseAgreementSpi
protected byte[] doCalcSecret()
doCalcSecret
in class BaseAgreementSpi
|
Bouncy Castle Cryptography Library 1.77.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |