pub fn authenticate(
sec: &StandardSecurity<'_>,
password: &[u8],
) -> Option<Authenticated>Expand description
Authenticates password as the user then the owner password for R2–R4, owner first for R5/R6
(ISO 32000-1
Algorithms 6–7 for R2–R4; ISO 32000-2 Algorithms 11–12 with 2.A/2.B for R6; the single
SHA-256 of Adobe Extension Level 3 for R5, which was never standardised and is read only).
Returns None when neither matches, or for a revision outside 2–6 or byte strings too
short for it.
Added in 0.2.0.