ice.crypto
Class DHKeyAgreement

java.lang.Object
  extended byice.crypto.DHKeyAgreement

public class DHKeyAgreement
extends Object

compliant to JCE1.2's javax.crypto.KeyAgreementSpi


Constructor Summary
DHKeyAgreement()
           
 
Method Summary
 Key engineDoPhase(Key key, boolean lastPhase)
           
 byte[] engineGenerateSecret()
           
 int engineGenerateSecret(byte[] sharedSecret, int offset)
           
 xjava.security.SecretKey engineGenerateSecret(String algorithm)
           
 void engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random)
           
 void engineInit(Key key, SecureRandom random)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DHKeyAgreement

public DHKeyAgreement()
Method Detail

engineInit

public void engineInit(Key key,
                       SecureRandom random)
                throws InvalidKeyException
Throws:
InvalidKeyException

engineInit

public void engineInit(Key key,
                       AlgorithmParameterSpec params,
                       SecureRandom random)
                throws InvalidKeyException
Throws:
InvalidKeyException

engineDoPhase

public Key engineDoPhase(Key key,
                         boolean lastPhase)
                  throws InvalidKeyException,
                         IllegalStateException
Throws:
InvalidKeyException
IllegalStateException

engineGenerateSecret

public byte[] engineGenerateSecret()
                            throws IllegalStateException
Throws:
IllegalStateException

engineGenerateSecret

public int engineGenerateSecret(byte[] sharedSecret,
                                int offset)
                         throws IllegalStateException
Throws:
IllegalStateException

engineGenerateSecret

public xjava.security.SecretKey engineGenerateSecret(String algorithm)
                                              throws IllegalStateException,
                                                     NoSuchAlgorithmException,
                                                     InvalidKeyException
Throws:
IllegalStateException
NoSuchAlgorithmException
InvalidKeyException