RSA_verify_ASN1_OCTET_STRING

Verify an RSA signature that wraps a DigestInfo-style ASN.1 OCTET STRING (deprecated).

Synopsis

Declared in <openssl/rsa.h>

[[deprecated]]
int
RSA_verify_ASN1_OCTET_STRING(
    int type,
    unsigned char const* m,
    unsigned int m_length,
    unsigned char* 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
typeNID of the digest algorithm expected inside the recovered DigestInfo.
mExpected digest bytes.
m_lengthLength of m in bytes.
sigbufSignature bytes to verify.
siglenLength of sigbuf in bytes.
rsaRSA public key used for verification.