OpenSSL RSA_sign_ASN1_OCTET_STRING(3openssl)
NNNNAAAAMMMMEEEERSA_sign_ASN1_OCTET_STRING, RSA_verify_ASN1_OCTET_STRING -
RSA signatures SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS#include
int RSA_sign_ASN1_OCTET_STRING(int dummy, unsigned char *m,
unsigned int m_len, unsigned char *sigret, unsigned int *siglen,
RSA *rsa);int RSA_verify_ASN1_OCTET_STRING(int dummy, unsigned char *m,
unsigned int m_len, unsigned char *sigbuf, unsigned int siglen,
RSA *rsa); DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNNRSA_sign_ASN1_OCTET_STRING() signs the octet string mmmm of
size mmmm_lllleeeennnn using the private key rrrrssssaaaa represented in DER
using PKCS #1 padding. It stores the signature in ssssiiiiggggrrrreeeetttt and
the signature size in ssssiiiigggglllleeeennnn. ssssiiiiggggrrrreeeetttt must point toRRRRSSSSAAAA_ssssiiiizzzzeeee((((rrrrssssaaaa)))) bytes of memory.
dddduuuummmmmmmmyyyy is ignored. The random number generator must be seeded prior to callingRSA_sign_ASN1_OCTET_STRING().
RSA_verify_ASN1_OCTET_STRING() verifies that the signature
ssssiiiiggggbbbbuuuuffff of size ssssiiiigggglllleeeennnn is the DER representation of a givenoctet string mmmm of size mmmm_lllleeeennnn. dddduuuummmmmmmmyyyy is ignored. rrrrssssaaaa is the
signer's public key. RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEESSSSRSA_sign_ASN1_OCTET_STRING() returns 1 on success, 0
otherwise. RSA_verify_ASN1_OCTET_STRING() returns 1 on
successful verification, 0 otherwise.The error codes can be obtained by ERR_get_error(3).
BBBBUUUUGGGGSSSS These functions serve no recognizable purpose. SSSSEEEEEEEE AAAALLLLSSSSOOOOERR_get_error(3), objects(3), rand(3), rsa(3), RSA_sign(3),
RSA_verify(3)
HHHHIIIISSSSTTTTOOOORRRRYYYYRSA_sign_ASN1_OCTET_STRING() and
RSA_verify_ASN1_OCTET_STRING() were added in SSLeay 0.8.
25/Sep/2002 Last change: 0.9.8o 1
OpenSSL RSA_sign_ASN1_OCTET_STRING(3openssl)
25/Sep/2002 Last change: 0.9.8o 2