public class DHEncrypter extends Object implements BufferEncrypter
Uses established shared secret from a Diffie Hellman session to encrypt the buffer.
| Constructor and Description |
|---|
DHEncrypter(DHSession session,
String cipherSpec,
String keySpec,
int blocksize) |
public byte[] encrypt(byte[] unencrypted)
throws InvalidKeyException,
IllegalStateException,
NoSuchAlgorithmException,
NoSuchPaddingException,
IllegalBlockSizeException,
BadPaddingException,
InvalidAlgorithmParameterException,
NoSuchProviderException
Copyright © 2011–2018 dCache.org. All rights reserved.