public class DummyElGamalEngine extends ElGamalEngine
Constructor and Description |
---|
DummyElGamalEngine(I2PAppContext context)
The ElGamal engine should only be constructed and accessed through the
application context.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
decrypt(byte[] encrypted,
PrivateKey privateKey)
Decrypt the data
|
byte[] |
encrypt(byte[] data,
PublicKey publicKey)
encrypt the data to the public key
|
restart, shutdown
public DummyElGamalEngine(I2PAppContext context)
public byte[] encrypt(byte[] data, PublicKey publicKey)
encrypt
in class ElGamalEngine
publicKey
- public key encrypt todata
- data to encryptpublic byte[] decrypt(byte[] encrypted, PrivateKey privateKey)
decrypt
in class ElGamalEngine
encrypted
- encrypted dataprivateKey
- private key to decrypt with