anon.crypto
Class MyRSA
java.lang.Object
anon.crypto.MyRSA
public class MyRSA
- extends java.lang.Object
Encryption/Decryption using RSA
Field Summary |
(package private) org.bouncycastle.crypto.encodings.OAEPEncoding |
m_OAEP
|
(package private) org.bouncycastle.crypto.engines.RSAEngine |
m_RSAEngine
|
Constructor Summary |
MyRSA()
|
MyRSA(org.bouncycastle.crypto.Digest digest)
|
Method Summary |
void |
init(MyRSAPublicKey key)
inits the cipher for encryption |
byte[] |
processBlockOAEP(byte[] plain,
int offset,
int len)
encrypts/decrypts one block using OAEP padding |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_RSAEngine
org.bouncycastle.crypto.engines.RSAEngine m_RSAEngine
m_OAEP
org.bouncycastle.crypto.encodings.OAEPEncoding m_OAEP
MyRSA
public MyRSA()
MyRSA
public MyRSA(org.bouncycastle.crypto.Digest digest)
init
public void init(MyRSAPublicKey key)
throws java.lang.Exception
- inits the cipher for encryption
- Throws:
java.lang.Exception
processBlockOAEP
public byte[] processBlockOAEP(byte[] plain,
int offset,
int len)
throws java.lang.Exception
- encrypts/decrypts one block using OAEP padding
- Throws:
java.lang.Exception