On Mon, Jun 25, 2012, Robert Foss wrote: > Hi, > > I'm getting differing results from AES_set_encrypt_key() depending on which > architecture I'm compiling for. > As far as I understand it, key expansion is deterministic which would mean > that something else is wrong. > > I've set up a simple printf aes key and compare with diff helper to easily > verify differences. >
There is no guarantee that the low level cipher context (or indeed any similar context) will be the same across platforms. Endian differences, padding and platform specific optimisations can result in different data at the machine level. The results of using contexts on the appropriate platform should obviously be consistent though. Steve. -- Dr Stephen N. Henson. OpenSSL project core developer. Commercial tech support now available see: http://www.openssl.org ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org