public interface SM9EncMasterPrivateKey extends java.security.PrivateKey, SM9EncUserKeyGenerator
SM9EncUserKeyGenerator extraction method with an explicit hid - the one
encryption master key serves KEM / public-key encryption (hid = 0x03) and
key exchange (hid = 0x02), the KGC's published hid distinguishing them.HID, HID_EXCHANGE| Modifier and Type | Method and Description |
|---|---|
java.security.KeyPair |
generateExchangeKeyPair(byte[] identity)
Generate the key-exchange key pair of the user identified by
identity, under hid 0x02 - the exchange identifier the GM/T 0044.5
Chinese-edition worked example publishes. |
java.security.KeyPair |
generateExchangeKeyPair(byte[] identity,
byte hid)
Generate the key-exchange key pair of the user identified by
identity under an explicit hid, for a KGC whose published exchange
hid is not 0x02. |
generateUserKeyPairjava.security.KeyPair generateExchangeKeyPair(byte[] identity)
identity, under hid 0x02 - the exchange identifier the GM/T 0044.5
Chinese-edition worked example publishes. Exchange keys and KEM/decryption
keys are distinct objects and the consumers mutually reject them.identity - the user's identity.java.security.KeyPair generateExchangeKeyPair(byte[] identity,
byte hid)
identity under an explicit hid, for a KGC whose published exchange
hid is not 0x02.identity - the user's identity.hid - the private-key generation function identifier the KGC chose.