help-gnutls
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RSA sign/verify and hash generation functions


From: Nikos Mavrogiannopoulos
Subject: Re: RSA sign/verify and hash generation functions
Date: Wed, 08 Dec 2010 23:28:29 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101027 Thunderbird/3.0.10

On 12/08/2010 12:30 AM, Murray S. Kucherawy wrote:

> assert(gnutls_privkey_sign_hash(rsa_key, &dd, &rsa_out == GNUTLS_E_SUCCESS);

Also check the documentation of the functions you are using :)
The sign_hash is low-level and isn't intended to be used like that.
Use gnutls_x509_privkey_sign_data() and gnutls_x509_privkey_verify_data().

regards,
Nikos



reply via email to

[Prev in Thread] Current Thread [Next in Thread]