ice.crypto
Class DHKeyAgreement
java.lang.Object
ice.crypto.DHKeyAgreement
- public class DHKeyAgreement
- extends Object
compliant to JCE1.2's javax.crypto.KeyAgreementSpi
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DHKeyAgreement
public DHKeyAgreement()
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