Create an RSA signature with PKCS#1 DigestInfo wrapping (deprecated).
Synopsis
Declared in <openssl/rsa.h>
[[deprecated]]
int
RSA_sign(
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
Name |
Description |
type |
Digest NID identifying the hash algorithm (for example NID_sha256). |
m |
Digest bytes to sign. |
m_length |
Length of |
sigret |
Buffer of at least RSA_size( |
siglen |
Receives the signature length in bytes. |
rsa |
RSA private key. |
Created with MrDocs