Skip to main content

eme_pkcs1v15_decode

Function eme_pkcs1v15_decode 

Source
pub(crate) fn eme_pkcs1v15_decode(em: &[u8], k: usize) -> (Choice, u32)
Expand description

Step 4: EME-PKCS1-v1_5 decoding, returning (check, L).

check is set if any padding check fails. L is the length following the first zero separator, or zero if no separator exists. Both remain secret.

The caller must establish the public bounds 11 <= k <= u32::MAX and em.len() == k.