com.motorola.iden.provider
Class ECDH

java.lang.Object
  |
  +--com.motorola.iden.crypto.KeyAgreementSpi
        |
        +--com.motorola.iden.provider.ECDH

public class ECDH
extends KeyAgreementSpi

Elliptic Curve Diffie-Hellman KeyAgreement Algorithm is not supported in the Gemini product.

MOTOROLA and the Stylized M Logo are registered trademarks of Motorola, Inc. Reg. U.S. Pat. & Tm. Off.
© Copyright 2002 - 2004 Motorola, Inc. All Rights Reserved.

See Also:
[CipherSpi]

Constructor Summary
ECDH()
          Elliptic Curve Diffie-Hellman KeyAgreement Algorithm is not supported in Gemini product.
 
Method Summary
protected  Key engineDoPhase(Key key, boolean lastPhase)
          Elliptic Curve Diffie-Hellman KeyAgreement Algorithm is not supported in Gemini product.
protected  byte[] engineGenerateSecret()
          Elliptic Curve Diffie-Hellman KeyAgreement Algorithm is not supported in Gemini product.
protected  void engineInit(Key key, AlgorithmParameterSpec params)
          Elliptic Curve Diffie-Hellman KeyAgreement Algorithm is not supported in Gemini product.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ECDH

public ECDH()
Elliptic Curve Diffie-Hellman KeyAgreement Algorithm is not supported in Gemini product.
Method Detail

engineInit

protected final void engineInit(Key key,
                                AlgorithmParameterSpec params)
                         throws InvalidKeyException,
                                InvalidAlgorithmParameterException
Elliptic Curve Diffie-Hellman KeyAgreement Algorithm is not supported in Gemini product.
Overrides:
engineInit in class KeyAgreementSpi
Following copied from class: com.motorola.iden.crypto.KeyAgreementSpi
Parameters:
key - the party's private information. For example, in the case of the Diffie-Hellman key agreement, this would be the party's own Diffie-Hellman private key.
params - the key agreement parameters
Throws:
InvalidKeyException - if the given key is inappropriate for this key agreement, e.g., is of the wrong type or has an incompatible algorithm type.
InvalidAlgorithmParameterException - if the given parameters are inappropriate for this key agreement.

engineDoPhase

protected final Key engineDoPhase(Key key,
                                  boolean lastPhase)
                           throws InvalidKeyException
Elliptic Curve Diffie-Hellman KeyAgreement Algorithm is not supported in Gemini product.
Overrides:
engineDoPhase in class KeyAgreementSpi
Following copied from class: com.motorola.iden.crypto.KeyAgreementSpi
Parameters:
key - the key for this phase. For example, in the case of Diffie-Hellman between 2 parties, this would be the other party's Diffie-Hellman public key.
lastPhase - flag which indicates whether or not this is the last phase of this key agreement.
Returns:
the (intermediate) key resulting from this phase, or null if this phase does not yield a key
Throws:
InvalidKeyException - if the given key is inappropriate for this phase.

engineGenerateSecret

protected final byte[] engineGenerateSecret()
Elliptic Curve Diffie-Hellman KeyAgreement Algorithm is not supported in Gemini product.
Overrides:
engineGenerateSecret in class KeyAgreementSpi
Following copied from class: com.motorola.iden.crypto.KeyAgreementSpi
Returns:
the new buffer with the shared secret