RSA_sign_ASN1_OCTET_STRING

Sign an ASN.1 OCTET STRING payload with RSA (deprecated).

Synopsis

Declared in <openssl/rsa.h>

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

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
typeUnused legacy digest type argument.
mOCTET STRING contents to sign.
m_lengthLength of m in bytes.
sigretBuffer of at least RSA_size(rsa) bytes receiving the signature.
siglenReceives the signature length in bytes.
rsaRSA private key.