Function nrfxlib_sys::ocrypto_rsa_pss_sha256_decode
source · pub unsafe extern "C" fn ocrypto_rsa_pss_sha256_decode(
em: *mut u8,
em_len: usize,
m: *const u8,
m_len: usize,
salt_len: usize
) -> c_int
Expand description
RSA PSS SHA-256 signature decoding.
em
- The encoded message.em_len
- Length of *em
- .m
- The signed message.m_len
- Length of *m
- .salt_len
- The length of the salt.
Returns 0 If the encoding is valid.
Returns -1 If decoding failed.
Returns -2 If the salt is too long ( * salt_len
- > * em_len
- - 34).