[#RSA_sign_ASN1_OCTET_STRING] = RSA_sign_ASN1_OCTET_STRING :mrdocs: Sign an ASN.1 OCTET STRING payload with RSA (deprecated). == Synopsis Declared in `<openssl/rsa.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated]] int RSA_sign_ASN1_OCTET_STRING( int type, unsigned char const* m, unsigned int m_length, unsigned char* sigret, 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 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *type* | Unused legacy digest type argument. | *m* | OCTET STRING contents to sign. | *m_length* | Length of `m` in bytes. | *sigret* | Buffer of at least RSA_size(`rsa)` bytes receiving the signature. | *siglen* | Receives the signature length in bytes. | *rsa* | RSA private key. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#