|
Bouncy Castle Cryptography Library 1.86 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bouncycastle.crypto.params.AsymmetricKeyParameter
org.bouncycastle.crypto.params.SM9EncMasterPublicKeyParameters
SM9 encryption master public key P_pub-e = [ke]P1, a point of G1 (GM/T 0044.4-2016). Note the group roles are swapped relative to signature: the encryption master public key lives in G1 and users' keys in G2.
| Method Summary | |
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 : 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 under an explicit hid ( encryption/KEM, 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). |
| Methods inherited from class org.bouncycastle.crypto.params.AsymmetricKeyParameter |
isPrivate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public SM9EncPublicKeyParameters getUserPublicKey(byte[] identity)
public SM9EncPublicKeyParameters getUserPublicKey(byte[] identity,
byte hid)
public ECPoint recipientPoint(byte[] identity)
public ECPoint recipientPoint(byte[] identity,
byte hid)
public Fp12 pairingWithP2()
public byte[] getEncoded()
public static SM9EncMasterPublicKeyParameters fromEncoded(byte[] enc)
|
Bouncy Castle Cryptography Library 1.86 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||