Function rabe::schemes::bsw::delegate[][src]

pub fn delegate(
    _pk: &CpAbePublicKey,
    _sk: &CpAbeSecretKey,
    _subset: &Vec<String>
) -> Option<CpAbeSecretKey>

The delegate generation algorithm of BSW CP-ABE. Generates a new CpAbeSecretKey using a CpAbePublicKey, a CpAbeSecretKey and a subset of attributes (of the key _sk) given as Vec.

Arguments

  • _pk - A Public Key (PK), generated by the function setup()
  • _sk - A Secret User Key (SK), generated by the function keygen()
  • _attributes - A Vector of String attributes assigned to this user key