RSA sign/verify and hash generation functions

Nikos Mavrogiannopoulos nmav at
Wed Dec 8 23:28:29 CET 2010

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().


More information about the Gnutls-help mailing list