Function rabe::schemes::ac17::cp_keygen[][src]

pub fn cp_keygen(
    msk: &Ac17MasterKey,
    attributes: &Vec<String>
) -> Option<Ac17CpSecretKey>

The key generation algorithm of AC17CP. Generates an Ac17CpSecretKey using a Ac17MasterKey and a set of attributes given as Vec.

Arguments

  • msk - A Master Key (MSK), generated by the function setup()
  • attributes - A Vector of String attributes assigned to this user key