pub unsafe extern "C" fn ocrypto_rsa2048_pkcs1_v15_sha256_verify(
s: *const u8,
m: *const u8,
mlen: usize,
pk: *const ocrypto_rsa2048_pub_key
) -> c_int
Expand description
2048-bit RSA PKCS1 V1.5 SHA-256 signature verify.
The signature * s
- of the input message * m
- is verified.
s
- The 256-byte signature.m
- The signed message.mlen
- Length of *m
- .pk
- A valid 2048-bit RSA public key.
Returns 0 If the signature is valid. Returns -1 If verification failed.
@remark The key * pk
- should be initialized with * ocrypto_rsa2048_init_pub_key
- .