Function rabe::schemes::aw11::decrypt [−][src]
pub fn decrypt(
gk: &Aw11GlobalKey,
sk: &Aw11SecretKey,
ct: &Aw11Ciphertext
) -> Result<Vec<u8>, RabeError>
This function decrypts a 'Aw11Ciphertext' if the attributes in SK match the policy of CT. If successfull, returns the plaintext data as a Vetor of u8's.
Arguments
_gk
- A Global Parameters Key (GK), generated by setup()_sk
- A secret user key (SK), associated with a set of attributes._ct
- A Aw11Ciphertext