public interface SM9EncUserKeyGenerator
SM9SigUserKeyGenerator| Modifier and Type | Field and Description |
|---|---|
static byte |
HID
The encryption private-key generation function identifier hid, 0x03 - the
value the GM/T 0044.5-2016 Annex C/D worked examples publish for KEM and
public-key encryption. hid is not fixed by the standard: GM/T 0044.3-2016
defines it as the "identifier of the encryption private key generating
function, denoted by one byte", chosen and published by the KGC.
|
static byte |
HID_EXCHANGE
The key-exchange private-key generation function identifier hid, 0x02, as
published by the Chinese edition of the GM/T 0044.5-2016 Annex B worked
example (the official English edition of the same annex chose 0x03 - the
KGC's published choice governs).
|
| Modifier and Type | Method and Description |
|---|---|
java.security.KeyPair |
generateUserKeyPair(byte[] identity,
byte hid)
Generate the key pair of the user identified by
identity under the given
hid. |
static final byte HID
static final byte HID_EXCHANGE
java.security.KeyPair generateUserKeyPair(byte[] identity,
byte hid)
identity under the given
hid. This derivation is a KGC operation and is deterministic - the same
master key, identity and hid always yield the same pair.identity - the user's identity.hid - the private-key generation function identifier the KGC chose:
0x03 for KEM / public-key encryption, 0x02 for
key exchange.