pub fn get_encryption_key<P>(
    doc: &Document,
    password: P,
    check_password: bool
) -> Result<Vec<u8>, DecryptionError>
where P: AsRef<[u8]>,
Expand description

Generates the encryption key for the document and, if check_password is true, verifies that the key is correct.