Skip to main content

gost_gmac_unprotect

Function gost_gmac_unprotect 

Source
pub fn gost_gmac_unprotect(
    ctx: &mut SecurityContext,
    apdu: &[u8],
) -> Result<(u8, Vec<u8>), CipherError>
Expand description

Removes GOST GMAC protection from an APDU. Rejects a replayed or reordered-backward invocation counter before any decryption is attempted; see unprotect.