|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object anon.crypto.MyRSA
public class MyRSA
Encryption/Decryption using RSA
Field Summary | |
---|---|
(package private) org.bouncycastle.crypto.encodings.OAEPEncoding |
m_OAEP
|
(package private) org.bouncycastle.crypto.encodings.PKCS1Encoding |
m_PKCS1
|
(package private) org.bouncycastle.crypto.engines.RSAEngine |
m_RSAEngine
|
Constructor Summary | |
---|---|
MyRSA()
|
|
MyRSA(org.bouncycastle.crypto.Digest digest)
|
Method Summary | |
---|---|
void |
init(MyRSAPrivateKey key)
inits the cipher for decryption |
void |
init(MyRSAPublicKey key)
inits the cipher for encryption |
byte[] |
processBlock(byte[] plain,
int offset,
int len)
encrypts/decrypts one block using Plain RSA |
byte[] |
processBlockOAEP(byte[] plain,
int offset,
int len)
encrypts/decrypts one block using OAEP padding |
byte[] |
processBlockPKCS1(byte[] plain,
int offset,
int len)
encrypts/decrypts one block using PKCS1 padding |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
org.bouncycastle.crypto.engines.RSAEngine m_RSAEngine
org.bouncycastle.crypto.encodings.OAEPEncoding m_OAEP
org.bouncycastle.crypto.encodings.PKCS1Encoding m_PKCS1
Constructor Detail |
---|
public MyRSA()
public MyRSA(org.bouncycastle.crypto.Digest digest)
Method Detail |
---|
public void init(MyRSAPublicKey key) throws java.lang.Exception
java.lang.Exception
public void init(MyRSAPrivateKey key) throws java.lang.Exception
java.lang.Exception
public byte[] processBlock(byte[] plain, int offset, int len) throws java.lang.Exception
java.lang.Exception
public byte[] processBlockOAEP(byte[] plain, int offset, int len) throws java.lang.Exception
java.lang.Exception
public byte[] processBlockPKCS1(byte[] plain, int offset, int len) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |