RSA_verify

Verify an RSASSA-PKCS1-v1_5 signature over digest m (deprecated).

Synopsis

Declared in <openssl/rsa.h>

[[deprecated]]
int
RSA_verify(
    int type,
    unsigned char const* m,
    unsigned int m_length,
    unsigned char const* sigbuf,
    unsigned int siglen,
    RSA* rsa);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 if the signature is valid, or 0 on failure.

Parameters

NameDescription
typeDigest NID that was used to produce m (for example NID_sha256).
mMessage digest bytes that were signed.
m_lengthLength of m in bytes.
sigbufSignature bytes to verify.
siglenLength of sigbuf in bytes.
rsaSigner's RSA public key.