You should probably investigate HMAC-SHA1 There is an example of the openssl command in Appendix C of http://www.openssl.org/docs/fips/SecurityPolicy-1.1.1.pdf
Bill -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vittorio Giovara Sent: December 8, 2007 12:26 PM To: openssl-users@openssl.org Subject: keyed digest hi! i'm experimenting the digest functions of openssl for my course in computer system security i have to create a digest which requires a password for verification of the file associated i run these commands openssl dgst -md5 -out MD5dgst msg openssl enc -aes256 -K 123456789 -iv 0 -in MD5dgst -out MD5dgst.keyed i don't know if it's the correct solution or if there's one integrated in just one command? do you know if it is possible? then for verification of the file i perform the reverse commands, that is, i decrypt the digest with my key, print the content of the digest and then run md5sum on the file is there a way that works just like signed digest (i mean like with the -sign option)? thanks a lot Vittorio ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED] ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]