org.bouncycastle.jce.provider
Class JCEECDHKeyAgreement
KeyAgreementSpi
org.bouncycastle.jce.provider.JCEECDHKeyAgreement
public class JCEECDHKeyAgreement
extends KeyAgreementSpi
Diffie-Hellman key agreement using elliptic curve keys, ala IEEE P1363
both the simple one, and the simple one with cofactors are supported.
JCEECDHKeyAgreement
protected JCEECDHKeyAgreement(BasicAgreement agreement)
engineDoPhase
protected Key engineDoPhase(Key key,
boolean lastPhase)
throws InvalidKeyException,
IllegalStateException
engineGenerateSecret
protected byte[] engineGenerateSecret()
throws IllegalStateException
engineGenerateSecret
protected SecretKey engineGenerateSecret(String algorithm)
engineGenerateSecret
protected int engineGenerateSecret(byte[] sharedSecret,
int offset)
throws IllegalStateException,
ShortBufferException
engineInit
protected void engineInit(Key key,
AlgorithmParameterSpec params,
SecureRandom random)
throws InvalidKeyException,
InvalidAlgorithmParameterException
engineInit
protected void engineInit(Key key,
SecureRandom random)
throws InvalidKeyException