|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--core.RSALib
This library realise the RSA/ECB/PKCS#1 encoding if given a provider of the RSA cipher which does not support any mode
| Constructor Summary | |
RSALib()
|
|
| Method Summary | |
static byte[] |
RSAdec(byte[] in,
java.security.interfaces.RSAKey k)
Decrypt a given array of bytes with a given RSAKey |
static byte[] |
RSAenc(byte[] in,
java.security.interfaces.RSAKey k)
Encrypt a given array of bytes with a given RSAKey |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RSALib()
| Method Detail |
public static byte[] RSAenc(byte[] in,
java.security.interfaces.RSAKey k)
throws java.lang.Exception
in - array of bytes that have to be encryptedk - key used for RSA encryption
java.lang.Exception
public static byte[] RSAdec(byte[] in,
java.security.interfaces.RSAKey k)
throws java.lang.Exception
in - array of bytes that have to be decryptedk - key used for RSA decryption
java.lang.Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||