Package 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 fromSM9EncMasterPublicKeyParameters.getUserPublicKey(byte[])and passed to theSM9KEMGeneratorwhen encapsulating a key to a given identity.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description bytegetHid()The private-key generation function identifier hid this public key's Q point is formed under - the KGC's published choice,0x03for a KEM / encryption recipient key.byte[]getIdentity()SM9EncMasterPublicKeyParametersgetMasterPublicKey()-
Methods inherited from class org.bouncycastle.crypto.params.AsymmetricKeyParameter
isPrivate
-
-
-
-
Method Detail
-
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,0x03for a KEM / encryption recipient key.
-
-