public final class ECDH
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
EFS |
static int |
EGS |
static int |
ERROR |
static int |
INVALID |
static int |
INVALID_PUBLIC_KEY |
| Constructor and Description |
|---|
ECDH() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
AES_CBC_IV0_DECRYPT(byte[] K,
byte[] C) |
static byte[] |
AES_CBC_IV0_ENCRYPT(byte[] K,
byte[] M) |
static byte[] |
ECIES_DECRYPT(int sha,
byte[] P1,
byte[] P2,
byte[] V,
byte[] C,
byte[] T,
byte[] U) |
static byte[] |
ECIES_ENCRYPT(int sha,
byte[] P1,
byte[] P2,
RAND RNG,
byte[] W,
byte[] M,
byte[] V,
byte[] T) |
static byte[] |
hashit(int sha,
byte[] A,
int n,
byte[] B,
int pad) |
static int |
HMAC(int sha,
byte[] M,
byte[] K,
byte[] tag) |
static byte[] |
inttoBytes(int n,
int len) |
static byte[] |
KDF1(int sha,
byte[] Z,
int olen) |
static byte[] |
KDF2(int sha,
byte[] Z,
byte[] P,
int olen) |
static int |
KEY_PAIR_GENERATE(RAND RNG,
byte[] S,
byte[] W) |
static byte[] |
PBKDF2(int sha,
byte[] Pass,
byte[] Salt,
int rep,
int olen) |
static int |
PUBLIC_KEY_VALIDATE(byte[] W) |
static int |
SP_DSA(int sha,
RAND RNG,
byte[] S,
byte[] F,
byte[] C,
byte[] D) |
static int |
SVDP_DH(byte[] S,
byte[] WD,
byte[] Z) |
static int |
VP_DSA(int sha,
byte[] W,
byte[] F,
byte[] C,
byte[] D) |
public static final int INVALID_PUBLIC_KEY
public static final int ERROR
public static final int INVALID
public static final int EFS
public static final int EGS
public static byte[] inttoBytes(int n,
int len)
public static byte[] hashit(int sha,
byte[] A,
int n,
byte[] B,
int pad)
public static byte[] KDF1(int sha,
byte[] Z,
int olen)
public static byte[] KDF2(int sha,
byte[] Z,
byte[] P,
int olen)
public static byte[] PBKDF2(int sha,
byte[] Pass,
byte[] Salt,
int rep,
int olen)
public static int HMAC(int sha,
byte[] M,
byte[] K,
byte[] tag)
public static byte[] AES_CBC_IV0_ENCRYPT(byte[] K,
byte[] M)
public static byte[] AES_CBC_IV0_DECRYPT(byte[] K,
byte[] C)
public static int KEY_PAIR_GENERATE(RAND RNG, byte[] S, byte[] W)
public static int PUBLIC_KEY_VALIDATE(byte[] W)
public static int SVDP_DH(byte[] S,
byte[] WD,
byte[] Z)
public static int SP_DSA(int sha,
RAND RNG,
byte[] S,
byte[] F,
byte[] C,
byte[] D)
public static int VP_DSA(int sha,
byte[] W,
byte[] F,
byte[] C,
byte[] D)
public static byte[] ECIES_ENCRYPT(int sha,
byte[] P1,
byte[] P2,
RAND RNG,
byte[] W,
byte[] M,
byte[] V,
byte[] T)
public static byte[] ECIES_DECRYPT(int sha,
byte[] P1,
byte[] P2,
byte[] V,
byte[] C,
byte[] T,
byte[] U)