[#RSA_verify_ASN1_OCTET_STRING]
= RSA&lowbar;verify&lowbar;ASN1&lowbar;OCTET&lowbar;STRING
:mrdocs:

Verify an RSA signature that wraps a DigestInfo&hyphen;style ASN&period;1 OCTET STRING (deprecated)&period;

== Synopsis

Declared in `&lt;openssl&sol;rsa&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
int
RSA&lowbar;verify&lowbar;ASN1&lowbar;OCTET&lowbar;STRING(
    int type,
    unsigned char const* m,
    unsigned int m&lowbar;length,
    unsigned char* sigbuf,
    unsigned int siglen,
    xref:RSA.adoc[RSA]* rsa);
----

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged.
====
== Return Value

1 if the signature is valid, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *type*
| NID of the digest algorithm expected inside the recovered DigestInfo&period;
| *m*
| Expected digest bytes&period;
| *m&lowbar;length*
| Length of `m` in bytes&period;
| *sigbuf*
| Signature bytes to verify&period;
| *siglen*
| Length of `sigbuf` in bytes&period;
| *rsa*
| RSA public key used for verification&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
