public final class GPCrypto extends Object
| Constructor and Description |
|---|
GPCrypto() |
| Modifier and Type | Method and Description |
|---|---|
static void |
buffer_increment(byte[] buffer) |
static byte[] |
kcv_3des(GPKey key) |
static byte[] |
mac_3des_nulliv(GPKey key,
byte[] d) |
static byte[] |
mac_3des(GPKey key,
byte[] text,
byte[] iv) |
static byte[] |
mac_des_3des(GPKey key,
byte[] text,
byte[] iv) |
static byte[] |
pad80(byte[] text,
int blocksize) |
static byte[] |
pad80(byte[] text,
int offset,
int length,
int blocksize) |
static PublicKey |
pem2pubkey(InputStream in) |
static byte[] |
scp03_encrypt_key(GPKey dek,
GPKey key) |
static byte[] |
scp03_kdf(byte[] key,
byte[] a,
byte[] b,
int bytes) |
static byte[] |
scp03_kdf(GPKey key,
byte constant,
byte[] context,
int blocklen_bits) |
static byte[] |
scp03_key_check_value(GPKey key) |
static byte[] |
scp03_mac(byte[] keybytes,
byte[] msg,
int lengthBits) |
static byte[] |
scp03_mac(GPKey key,
byte[] msg,
int lengthbits) |
static byte[] |
unpad80(byte[] text) |
public static byte[] pad80(byte[] text,
int offset,
int length,
int blocksize)
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(GPKey key, byte[] text, byte[] iv)
public static byte[] mac_3des_nulliv(GPKey key, byte[] d)
public static byte[] mac_des_3des(GPKey key, byte[] text, byte[] iv)
public static byte[] scp03_mac(GPKey key, byte[] msg, int lengthbits)
public static byte[] scp03_mac(byte[] keybytes,
byte[] msg,
int lengthBits)
public static byte[] scp03_kdf(GPKey key, byte constant, byte[] context, int blocklen_bits)
public static byte[] scp03_kdf(byte[] key,
byte[] a,
byte[] b,
int bytes)
public static byte[] scp03_key_check_value(GPKey key)
public static byte[] kcv_3des(GPKey key)
public static PublicKey pem2pubkey(InputStream in) throws IOException
IOExceptionCopyright © 2018. All rights reserved.