public final class RSACore
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
convert(byte[] b,
int ofs,
int len) |
static int |
getByteLength(java.math.BigInteger b)
Return the number of bytes required to store the magnitude byte[] of
this BigInteger.
|
static int |
getByteLength(java.security.interfaces.RSAKey key)
Return the number of bytes required to store the modulus of this
RSA key.
|
static byte[] |
rsa(byte[] msg,
java.security.interfaces.RSAPrivateKey key)
Deprecated.
|
static byte[] |
rsa(byte[] msg,
java.security.interfaces.RSAPrivateKey key,
boolean verify)
Perform an RSA private key operation.
|
static byte[] |
rsa(byte[] msg,
java.security.interfaces.RSAPublicKey key)
Perform an RSA public key operation.
|
public static int getByteLength(java.math.BigInteger b)
public static int getByteLength(java.security.interfaces.RSAKey key)
public static byte[] convert(byte[] b,
int ofs,
int len)
public static byte[] rsa(byte[] msg,
java.security.interfaces.RSAPublicKey key)
throws javax.crypto.BadPaddingException
javax.crypto.BadPaddingException@Deprecated
public static byte[] rsa(byte[] msg,
java.security.interfaces.RSAPrivateKey key)
throws javax.crypto.BadPaddingException
javax.crypto.BadPaddingExceptionpublic static byte[] rsa(byte[] msg,
java.security.interfaces.RSAPrivateKey key,
boolean verify)
throws javax.crypto.BadPaddingException
javax.crypto.BadPaddingException