Bizhan Gholikhamseh wrote:

> Hi all,
> I have an image that I need to calculate SHA256 has digest of image and
> encrypt the hash digest using my private key to generate image
> signature.
>
> Could someone please let me know how to use openssl to do this?

1) Calculate the SHA256 hash.

2) Sign it with the private key.

If you want a more specific answer, you're going to have to ask a more
specific question.

Are you trying to write a program? Are you trying to use the 'openssl'
application? Is there some specific image signing format you're trying to
use? Who or what is supposed to be able to verify this signature and using
what format?

Your question is like "how can I use steel to build a bridge". You get the
steel and you form it into a bridge with tools.

DS


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to