public final class GPCrypto extends Object
| Constructor and Description |
|---|
GPCrypto() |
| Modifier and Type | Method and Description |
|---|---|
static void |
buffer_increment(byte[] buffer) |
static byte[] |
dek_encrypt_aes(byte[] key,
byte[] data) |
static byte[] |
dek_encrypt_des(byte[] key,
byte[] data) |
static byte[] |
kcv_3des(byte[] key) |
static byte[] |
kcv_aes(byte[] key) |
static byte[] |
mac_3des_nulliv(byte[] key,
byte[] d) |
static byte[] |
mac_3des(byte[] key,
byte[] text,
byte[] iv) |
static byte[] |
mac_des_3des(byte[] key,
byte[] text,
byte[] iv) |
static byte[] |
pad80(byte[] text,
int blocksize) |
static PrivateKey |
pem2PrivateKey(InputStream in) |
static PublicKey |
pem2PublicKey(InputStream in) |
static byte[] |
scp03_kdf(byte[] key,
byte[] a,
byte[] b,
int bytes) |
static byte[] |
scp03_mac(byte[] keybytes,
byte[] msg,
int lengthBits) |
static byte[] |
unpad80(byte[] text) |
public static byte[] pad80(byte[] text,
int blocksize)
public static byte[] unpad80(byte[] text)
throws BadPaddingException
BadPaddingExceptionpublic static void buffer_increment(byte[] buffer)
public static byte[] mac_3des(byte[] key,
byte[] text,
byte[] iv)
public static byte[] mac_3des_nulliv(byte[] key,
byte[] d)
public static byte[] mac_des_3des(byte[] key,
byte[] text,
byte[] iv)
public static byte[] scp03_mac(byte[] keybytes,
byte[] msg,
int lengthBits)
public static byte[] scp03_kdf(byte[] key,
byte[] a,
byte[] b,
int bytes)
public static byte[] kcv_aes(byte[] key)
public static byte[] kcv_3des(byte[] key)
public static byte[] dek_encrypt_des(byte[] key,
byte[] data)
throws GeneralSecurityException
GeneralSecurityExceptionpublic static byte[] dek_encrypt_aes(byte[] key,
byte[] data)
throws GeneralSecurityException
GeneralSecurityExceptionpublic static PublicKey pem2PublicKey(InputStream in) throws IOException
IOExceptionpublic static PrivateKey pem2PrivateKey(InputStream in) throws IOException
IOExceptionCopyright © 2019. All rights reserved.