org.bouncycastle.crypto.params
Class SM9EncPublicKeyParameters
java.lang.Object
org.bouncycastle.crypto.params.AsymmetricKeyParameter
org.bouncycastle.crypto.params.SM9EncPublicKeyParameters
- All Implemented Interfaces:
- CipherParameters
- public class SM9EncPublicKeyParameters
- extends AsymmetricKeyParameter
An SM9 recipient's encryption public key: the identity together with the
encryption master public key from which the recipient point Q is derived
(GM/T 0044.4-2016). Obtained from
SM9EncMasterPublicKeyParameters.getUserPublicKey(byte[]) and passed to the
SM9KEMGenerator when encapsulating a key to a
given identity.
It is also what SM9Engine encrypts to.
Usage warning: an identity's key should be used for one of the two, but not for
both. Which of the two an identity's key is for is the KGC's to fix, by publishing a
separate hid for each function as it already does for the key exchange.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getMasterPublicKey
public SM9EncMasterPublicKeyParameters getMasterPublicKey()
getIdentity
public byte[] getIdentity()
getHid
public byte getHid()
- The private-key generation function identifier hid this public key's Q
point is formed under - the KGC's published choice, for a
KEM / encryption recipient key.