Function nrfxlib_sys::ocrypto_rsa_pss_sha256_verify
source · pub unsafe extern "C" fn ocrypto_rsa_pss_sha256_verify(
s: *const u8,
s_len: usize,
m: *const u8,
m_len: usize,
salt_len: usize,
pk: *const ocrypto_rsa_pub_key,
mem: *mut u32
) -> c_int
Expand description
RSA PSS SHA-256 signature verify.
The signature * s
- of the input message * m
- is verified.
s
- The signature.s_len
- Length of *s
- .m
- The signed message.m_len
- Length of *m
- .salt_len
- The length of the salt.pk
- A valid RSA public key.mem
- The working memory. Length OCRYPTO_RSA_PUB_MEM_SIZE(bits).
Returns 0 If the signature is valid. Returns -1 If verification failed. Returns -2 If the salt is too long.
@remark The key * pk
- should be initialized with * ocrypto_rsa_init_pub_key
- .
@remark * mem
- may be same as * s
- or * m
- .