On Wed, Jul 20, 2016 at 12:19 AM, Dr. Stephen Henson <[email protected]> wrote:
>
> If you want to hash and sign the hash you should use EVP functions such as
>  EVP_DigestSign*() functions instead. If you already have the hash you can
> use RSA_sign (though EVP_PKEY_sign() is preferred) the type parameter in
> the NID of the digest algorithm, for SHA256 you use NID_sha256.

Indeed, NID_sha256 works great in my case, thank you!

I will have a look at EVP_DigestSign*() functions too.

Thanks,
Gabriel
-- 
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users

Reply via email to