Namrata Sorte wrote:

> Ya to be more specific, I want to sign and verify Word Document
> File and using command line will be fine for now. For this I am
> using SHA-1 to generate hash of the input message, than I want
> to use RSA for signing this message digest, which finally will
> be appended to Word Document containing the input message.

Please, for all that is holy, DO NOT DO THIS. Do not invent your own
signature scheme. Others have already developed such schemes that are known
to work. Why are you trying to invent your own?

Yes, it's possible to design a signature scheme where you make the SHA1 hash
of the file. Yes, it's possible to design a scheme that uses RSA as the
signature primitive. BUT YOU ARE NOT COMPETENT TO DESIGN SUCH A SCHEME. Why
are you trying?

> So now the problem I am facing here is using OpenSSL rsautl
> OpenSSL> rsautl -sign -in file1.doc -inkey private.pem -out sig

WHY?! RSA is a primitive. It is *NOT* suitable for direct use for either
encryption or signatures.

> What should I do to fix this error so that it supports
> long word document files too?

Use an encryption system designed by a competent security expert rather than
trying to roll your own. You were given links to such systems in previous
messages. (Google 'GPG' if you like.)

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