Subject: Re: OpenSSL Hashes
To: <>
From: Thilo Jeremias <jeremias@optushome.com.au>
List: current-users
Date: 08/25/2006 21:18:52
Dieter Roelants wrote:
> On 08/25/06 02:40:18, Evaldo Gardenali wrote:
>   
>> Hi!
>>
>> Yes, OpenSSL 0.9.8 works with SHA2 on all other platforms I use, and 
>> it is included on the official source distribution, like I can see by 
>> browsing the files openssl-0.9.8b/crypto/sha/sha256.c sha456t.c 
>> sha512.c sha512t.c for example.
>>     
>
> OpenSSL help doesn't print them, but they seem to be there:
>   

Oh it does:

bash-2.05b#  openssl dgst -? 
unknown option '-?'
options are
-c              to output the digest with separating colons
-d              to output debug info
-hex            output as hex dump
-binary         output in binary form
-sign   file    sign digest using private key in file
-verify file    verify a signature using public key in file
-prverify file  verify a signature using private key in file
-keyform arg    key file format (PEM or ENGINE)
-signature file signature to verify
-binary         output in binary form
-engine e       use engine e, possibly a hardware device.
-md5 to use the md5 message digest algorithm (default)
-md4 to use the md4 message digest algorithm
-md2 to use the md2 message digest algorithm
-sha1 to use the sha1 message digest algorithm
-sha to use the sha message digest algorithm
-sha256 to use the sha256 message digest algorithm
-sha512 to use the sha512 message digest algorithm
-mdc2 to use the mdc2 message digest algorithm
-ripemd160 to use the ripemd160 message digest algorithm



thilo

> simult:p4:~$ uname -rs
> NetBSD 4.99.1
> simult:p4:~$ type openssl
> openssl is /usr/bin/openssl
> simult:p4:~$ openssl dgst -sha256 < /dev/null
> e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
> simult:p4:~$ openssl dgst -sha384 < /dev/null
> 38b060a751ac96384cd9327eb1b1e36a21fdb71114be07434c0cc7bf63f6e1da274edebfe76f65fbd51ad2f14898b95b
> simult:p4:~$ openssl dgst -sha512 < /dev/null
> cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e
>
> Maybe that's why help said: "see the `dgst' command for more details" :)
>
>
> Kind regards
> dieter
>
>   
>>     
>
>