Package org.bouncycastle.crypto.params
Interface SM9EncUserKeyParametersGenerator
-
- All Known Implementing Classes:
SM9EncMasterPrivateKeyParameters
public interface SM9EncUserKeyParametersGeneratorA master key capable of the KGC user-key extraction for an identity-based encryption-family scheme: deriving a user's private key from the user's identity and the private-key generation function identifier hid the KGC chose (GM/T 0044.3/0044.4-2016 for SM9, where one encryption master key serves key exchange, KEM and public-key encryption, distinguished by hid).- See Also:
SM9SigUserKeyParametersGenerator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SM9EncPrivateKeyParametersgenerateUserKey(byte[] identity, byte hid)Derive the private key of the user identified byidentityunder the given hid, a deterministic KGC operation - the same master key, identity and hid always yield the same user key.
-
-
-
Method Detail
-
generateUserKey
SM9EncPrivateKeyParameters generateUserKey(byte[] identity, byte hid)
Derive the private key of the user identified byidentityunder the given hid, a deterministic KGC operation - the same master key, identity and hid always yield the same user key.- Parameters:
identity- the user's identity.hid- the private-key generation function identifier the KGC chose,SM9EncMasterPrivateKeyParameters.HIDorSM9EncMasterPrivateKeyParameters.HID_EXCHANGE.- Returns:
- the user's private key.
-
-