public class SM9Sm3
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.math.BigInteger |
h1(byte[] z,
java.math.BigInteger n)
H1(Z, n): hash-to-range with the 0x01 domain prefix (GM/T 0044.2 5.4.2.2).
|
static java.math.BigInteger |
h2(byte[] z,
java.math.BigInteger n)
H2(Z, n): hash-to-range with the 0x02 domain prefix (GM/T 0044.2 5.4.2.3).
|
static byte[] |
kdf(byte[] z,
int klenBits)
The SM9 key derivation function KDF(Z, klen) (GM/T 0044.3/0044.4), a
counter-mode construction over SM3 with a 32-bit big-endian counter
starting at 1.
|
public static java.math.BigInteger h1(byte[] z,
java.math.BigInteger n)
public static java.math.BigInteger h2(byte[] z,
java.math.BigInteger n)
public static byte[] kdf(byte[] z,
int klenBits)
klenBits is the requested output length in bits.