Verify an RSA signature that wraps a DigestInfo-style ASN.1 OCTET STRING (deprecated).
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);
Deprecated. Use of this entity is allowed but discouraged.
1 if the signature is valid, or 0 on failure.
| Name | Description |
|---|---|
| type | NID of the digest algorithm expected inside the recovered DigestInfo. |
| m | Expected digest bytes. |
| m_length | Length of m in bytes. |
| sigbuf | Signature bytes to verify. |
| siglen | Length of sigbuf in bytes. |
| rsa | RSA public key used for verification. |