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

pub fn decrypt(
    _sk: &CpAbeSecretKey,
    _ct: &CpAbeCiphertext
) -> Result<Vec<u8>, RabeError>

The decrypt algorithm of BSW CP-ABE. Reconstructs the original plaintext data as Vec, given a CpAbeCiphertext with a matching CpAbeSecretKey.

Arguments

  • _sk - A Secret Key (SK), generated by the function keygen()
  • _ct - An BSW CP-ABE Ciphertext