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. If anyone has any ideas I would be very grateful // Robert debug.sh: #!/bin/bash make clean && \ gcc -std=c99 -lssl -m32 bug.c -o test && ./test > m32.log && \ make clean && \ gcc -std=c99 -lssl -m64 bug.c -o test && ./test > m64.log && \ diff m32.log m64.log bug.c: void hexdump(FILE *f, const char *title, const unsigned char *s, int length) { for(int n = 0; n < length ; ++n) { if((n%16) == 0) fprintf(f, "\n%s %04x", title, n); fprintf(f, " %02x", s[n]); } fprintf(f, "\n"); } int main() { char *key = "Lorem ipsum dolor sit amet, consectetur adipiscing elit."; AES_KEY aes_key; if(AES_set_encrypt_key((unsigned char*) key, 128, &aes_key) != 0) return EXIT_FAILURE; hexdump(stdout, "OpenCL: opencl_set_encrypt_key() AES_KEY", (unsigned char*) &aes_key, sizeof(AES_KEY)); return EXIT_SUCCESS; } -- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org