public class SM9EncMasterPublicKeyParameters extends AsymmetricKeyParameter
| Modifier and Type | Method and Description |
|---|---|
static SM9EncMasterPublicKeyParameters |
fromEncoded(byte[] enc) |
byte[] |
getEncoded()
The master public key point P_pub-e of G1 in uncompressed form
(0x04 || x || y, 65 bytes).
|
SM9EncPublicKeyParameters |
getUserPublicKey(byte[] identity)
The encryption public key of the user identified by
identity: the recipient key
a sender encapsulates to (or encrypts to), formed from this master public key and
the identity under the encryption hid 0x03 (GM/T 0044.4). |
SM9EncPublicKeyParameters |
getUserPublicKey(byte[] identity,
byte hid)
The public key of the user identified by
identity under an explicit hid
(0x03 encryption/KEM, 0x02 key exchange) - use when the
KGC's published hid differs from the encryption default. |
Fp12 |
pairingWithP2()
g = e(P_pub-e, P2), the fixed pairing value used by both encapsulation and
encryption.
|
ECPoint |
recipientPoint(byte[] identity)
Q = [H1(identity||hid, N)]P1 + P_pub-e, the recipient's public key point in G1,
using the encryption hid (0x03).
|
ECPoint |
recipientPoint(byte[] identity,
byte hid)
Q = [H1(identity||hid, N)]P1 + P_pub-e for an explicit hid (0x03 encryption,
0x02 key exchange).
|
isPrivatepublic SM9EncPublicKeyParameters getUserPublicKey(byte[] identity)
identity: the recipient key
a sender encapsulates to (or encrypts to), formed from this master public key and
the identity under the encryption hid 0x03 (GM/T 0044.4). It is derived from the
published master public key alone, so any sender can construct it without KGC
interaction.public SM9EncPublicKeyParameters getUserPublicKey(byte[] identity, byte hid)
identity under an explicit hid
(0x03 encryption/KEM, 0x02 key exchange) - use when the
KGC's published hid differs from the encryption default.public ECPoint recipientPoint(byte[] identity)
public ECPoint recipientPoint(byte[] identity, byte hid)
public Fp12 pairingWithP2()
public byte[] getEncoded()
public static SM9EncMasterPublicKeyParameters fromEncoded(byte[] enc)