public class BouncyCastleRSAEngine extends Object implements EncryptionEngine
EncryptionEngine implementation for RSA algorithm from Bouncy Castle.| Constructor and Description |
|---|
BouncyCastleRSAEngine(org.bouncycastle.crypto.params.RSAKeyParameters publicKey,
org.bouncycastle.crypto.params.RSAKeyParameters privateKey) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(byte[] input,
byte[] initVector) |
byte[] |
encrypt(byte[] input,
byte[] initVector) |
public BouncyCastleRSAEngine(org.bouncycastle.crypto.params.RSAKeyParameters publicKey,
org.bouncycastle.crypto.params.RSAKeyParameters privateKey)
public byte[] encrypt(byte[] input,
byte[] initVector)
throws EncryptionException
encrypt in interface EncryptionEngineEncryptionExceptionpublic byte[] decrypt(byte[] input,
byte[] initVector)
throws EncryptionException
decrypt in interface EncryptionEngineEncryptionExceptionCopyright © 2016. All rights reserved.