pub unsafe extern "C" fn ocrypto_rsa1024_pss_sha256_verify(
    s: *const u8,
    m: *const u8,
    m_len: usize,
    s_len: usize,
    pk: *const ocrypto_rsa1024_pub_key
) -> c_int
Expand description

1024-bit RSA PSS SHA-256 signature verify.

The signature * s - of the input message * m - is verified.

  • s - The 128-byte signature.
  • m - The signed message.
  • m_len - Length of * m - .
  • s_len - The length of the salt.
  • pk - A valid 1024-bit RSA public key.

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_rsa1024_init_pub_key - .