public final class RSA
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
HASH_TYPE |
static int |
RFS |
static int |
SHA256 |
static int |
SHA384 |
static int |
SHA512 |
| Constructor and Description |
|---|
RSA() |
| Modifier and Type | Method and Description |
|---|---|
static void |
DECRYPT(private_key PRIV,
byte[] G,
byte[] F) |
static void |
ENCRYPT(public_key PUB,
byte[] F,
byte[] G) |
static byte[] |
hashit(int sha,
byte[] A,
int n) |
static void |
KEY_PAIR(RAND rng,
int e,
private_key PRIV,
public_key PUB) |
static void |
MGF1(int sha,
byte[] Z,
int olen,
byte[] K) |
static byte[] |
OAEP_DECODE(int sha,
byte[] p,
byte[] f) |
static byte[] |
OAEP_ENCODE(int sha,
byte[] m,
RAND rng,
byte[] p) |
static boolean |
PKCS15(int sha,
byte[] m,
byte[] w) |
static void |
printBinary(byte[] array) |
static void |
PRIVATE_KEY_KILL(private_key PRIV) |
public static final int RFS
public static final int SHA256
public static final int SHA384
public static final int SHA512
public static final int HASH_TYPE
public static byte[] hashit(int sha,
byte[] A,
int n)
public static void KEY_PAIR(RAND rng, int e, private_key PRIV, public_key PUB)
public static void MGF1(int sha,
byte[] Z,
int olen,
byte[] K)
public static void printBinary(byte[] array)
public static boolean PKCS15(int sha,
byte[] m,
byte[] w)
public static byte[] OAEP_ENCODE(int sha,
byte[] m,
RAND rng,
byte[] p)
public static byte[] OAEP_DECODE(int sha,
byte[] p,
byte[] f)
public static void PRIVATE_KEY_KILL(private_key PRIV)
public static void ENCRYPT(public_key PUB, byte[] F, byte[] G)
public static void DECRYPT(private_key PRIV, byte[] G, byte[] F)