Interface SM9EncUserPrivateKey

All Superinterfaces:
AsymmetricKey, DEREncodablePREVIEW, Destroyable, Key, PrivateKey, Serializable

public interface SM9EncUserPrivateKey extends PrivateKey
Interface for a user's SM9 (GM/T 0044.4) encryption (KEM / decryption) private key (de), derived by the KGC from the encryption master private key and the user's identity.

Usage warning: one identity's key should be used for Cipher.SM9 or for the SM9 KEM (KeyGenerator.SM9-KEM, KEM.SM9-KEM), but not for both. A deployment needing both has its KGC publish a separate hid for each function, as it already does for the key exchange, so that the two keys are distinct.

  • Method Details

    • getIdentity

      byte[] getIdentity()
      The identity this key was derived for.
      Returns:
      the user's identity.