Bouncy Castle Cryptography Library 1.86

org.bouncycastle.crypto.params
Class SM9EncPublicKeyParameters

java.lang.Object
  extended byorg.bouncycastle.crypto.params.AsymmetricKeyParameter
      extended byorg.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.


Method Summary
 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.
 byte[] getIdentity()
           
 SM9EncMasterPublicKeyParameters getMasterPublicKey()
           
 
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

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.


Bouncy Castle Cryptography Library 1.86