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

pub fn kp_decrypt(
    sk: &Ac17KpSecretKey,
    ct: &Ac17KpCiphertext
) -> Result<Vec<u8>, RabeError>

The decrypt algorithm of AC17KP. Reconstructs the original plaintext data as Vec, given a Ac17KpCiphertext with a matching Ac17KpSecretKey.

Arguments

  • sk - A Secret Key (SK), generated by the function kp_keygen()
  • ct - An AC17KP Ciphertext