When making a message digest using the EVP_DigestInit_ex,
EVP_DigestUpdate, EVP_DigestFinal_ex functions one ends up with a 20
byte (for instance, with sha1) data structure stored in the md array.

What I would like to know is if the order of those bytes is affected by
underlying architecture of the system where this code runs?  

That is, if a file containing:

(20 bytes from a message digest)
(message which generated those 20 bytes)

is generated on one machine, would an identical file be generated on
every other machine, especially ones with different byte order?  

If not, what steps need to be taken to make this portable?

Also, outside of the (possible) byte order issues with the digest
output, I would like to know which if any message digest results also
depend on byte order.  For instance, I know blowfish does (acts in 32
bit chunks), what about sha1, md5, etc?

Thank you,

David Mathog
mat...@caltech.edu
Manager, Sequence Analysis Facility, Biology Division, Caltech
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to