At 19:24 22.03.00 +0200, you wrote:
>Hi,
>
>I have another newbie question.
>
>I'm using RSA_verify to verify a signature which synopsis according to the
OpenSSL webpage documentation if following:
>
>int RSA_verify(int type, unsigned char *m, unsigned int m_len,
> unsigned char *sigbuf, unsigned int siglen, RSA *rsa);
>
>and i've been wondering what should be there in siglen?
You verify a signature.
The signature is some data with some length.
this length you have to pass as siglen.
>I tried strlen(sigbuf), but then my signature doesn't verify - RSA_verify
Won't work.
sigbuf is some binary data...
>Have i misunderstood something? How do I get the right size of sigbuf into
the variable siglen?
It is the size of the signature you want to verify.
By
Goetz
--
Goetz Babin-Ebell, TC TrustCenter GmbH, http://www.trustcenter.de
Sonninstr. 24-28, 20097 Hamburg, Germany
Tel.: +49-(0)40 80 80 26 -0, Fax: +49-(0)40 80 80 26 -126
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]