Sha1sum output has 40 hexadecimal symbols. Each hexadecimal is represented by 4 bits. So sha1sum has 40*4=160bits/20bytes output.
Probably you made some confusion about the sha1sum output representation. 2009/12/2 Sebastián Treu <sebastian.t...@gmail.com>: > Hi, > > I'm reading this: > > http://www.openssl.org/docs/crypto/sha.html > > "[...] > DESCRIPTION > > SHA-1 (Secure Hash Algorithm) is a cryptographic hash function with a > 160 bit output. > > SHA1() computes the SHA-1 message digest of the n bytes at d and > places it in md (which must have space for SHA_DIGEST_LENGTH == 20 > bytes of output). If md is NULL, the digest is placed in a static > array. > [...]" > > And I wanted to use sha1sum from my linux command line: > > "[...] > DESCRIPTION > Print or check SHA1 (160-bit) checksums. > [...]" > > are thes equivalent to each others? or should I use the openssl > toolkit? I ask this cause sha1sum results are 41 bytes long. the > SHA-1() doc says 20bytes for output. > > Regards, > -- > If you want freedom, compile the source. Get gentoo. > > Sebastián Treu > http://labombiya.com.ar > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > User Support Mailing List openssl-us...@openssl.org > Automated List Manager majord...@openssl.org > ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org