> > The input to RSA_sign() must be smaller than BN_num_bytes(rsa->n) minus > > PKCS#1 padding bytes and some bytes for the asn1 digest encoding. > > where is it written ?
The RSA signature generation is specified in the PKCS#1 draft ( http://www.rsasecurity.com/rsalabs/pkcs/pkcs-1/index.html ) > > > [...] > > > > > so I don't understand what is going on with the value 100...and more I > > > don't know how to sign my real buffer (length ~= 500 octets) > > > > Hash your buffer and then sign the hash value with RSA_sign() > > ( or better : use the EVP_Sign* functions ). > > Is it a standard way to proceed ? Yes ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]