when running "make test" ideatest prints
cbc idea ok
cfb64 idea ok
and then make itself exists with error (what means that idea.c return an
error).

i added some debug-prints to the file test/ideatest.c
result: the variable "err" within the "main"-routine is changed from 0
to another value when calling memcmp(out,c,8);

is this is a side effect or compiler error and can i ignore it?


parts from file:

....
main()
....
idea_ecb_encrypt(in,out,&key);
printf("idea AMI 1: err=%d\n",err); /* err is 0 */
if (memcmp(out,c,8) != 0)
{
... /* the prints are not reached */
... /* so it should be Ok */
}
printf("idea AMI 2: err=%d\n",err); /* err is -8 */


Alexander
__________________________________________________ ____________________
OpenSSL Project http://www.openssl.org
Development Mailing List openssl-dev@openssl.org
Automated List Manager majordomo@openssl.org