Skip to main content

emsa_pss_get_salt_len

Function emsa_pss_get_salt_len 

Source
fn emsa_pss_get_salt_len(
    db: &[u8],
    em_len: usize,
    h_len: usize,
) -> (usize, Choice)
Expand description

Detect salt length by scanning DB for the 0x01 separator byte. Returns (s_len, valid) where s_len is 0 on failure.