diff -up ykpers-1.4.1/tests/test_args_to_config.c.bigendian ykpers-1.4.1/tests/test_args_to_config.c --- ykpers-1.4.1/tests/test_args_to_config.c.bigendian 2011-04-29 17:09:24.000000000 +0200 +++ ykpers-1.4.1/tests/test_args_to_config.c 2011-04-29 17:09:37.000000000 +0200 @@ -86,6 +86,7 @@ void _check_success(int rc, YKP_CONFIG * /* insert CRC */ ycfg->crc = ~yubikey_crc16 ((unsigned char *) ycfg, offsetof(struct config_st, crc)); + ycfg->crc = yk_endian_swap_16(ycfg->crc); config_matches_expected = ! memcmp(expected, ycfg, sizeof(*ycfg)); if (! config_matches_expected) {