+2012-06-25 Niels Möller <nisse@lysator.liu.se>
+
+ * testsuite/des-compat-test.c (test_main): Disable declarations of
+ disabled functions and variables, to avoid warnings. No verbose
+ output unless verbose flag is set.
+
2012-06-09 Niels Möller <nisse@lysator.liu.se>
* examples/Makefile.in (SOURCES): Added base16dec.c, forgotten
#ifndef NOPROTO
static char *pt(const unsigned char *p);
+#if 0
static int cfb_test(int bits, unsigned char *cfb_cipher);
static int cfb64_test(unsigned char *cfb_cipher);
static int ede_cfb64_test(unsigned char *cfb_cipher);
+#endif
#else
static char *pt();
static int cfb_test();
des_cblock cbc_in[5];
des_cblock cbc_out[5];
DES_LONG cs;
- unsigned char qret[4][4],cret[8];
+ unsigned char cret[8];
+#if 0
+ unsigned char qret[4][4];
DES_LONG lqret[4];
int num;
char *str;
-
- printf("Doing ecb\n");
+#endif
+ if (verbose) printf("Doing ecb\n");
for (i=0; i<NUM_TESTS; i++)
{
if ((j=des_key_sched(&key_data[i], ks)) != 0)
}
#ifndef LIBDES_LIT
- printf("Doing ede ecb\n");
+ if (verbose) printf("Doing ede ecb\n");
for (i=0; i<(NUM_TESTS-1); i++)
{
if ((j=des_key_sched(&key_data[i], ks)) != 0)
}
#endif
- printf("Doing cbc\n");
+ if (verbose) printf("Doing cbc\n");
if ((j=des_key_sched(&cbc_key, ks)) != 0)
{
printf("Key error %d\n",j);
#ifndef LIBDES_LIT
#if 0
- printf("Doing desx cbc\n");
+ if (verbose) printf("Doing desx cbc\n");
if ((j=des_key_sched((C_Block *)cbc_key,ks)) != 0)
{
printf("Key error %d\n",j);
#endif
#endif /* LIBDES_LIT */
- printf("Doing ede cbc\n");
+ if (verbose) printf("Doing ede cbc\n");
if ((j=des_key_sched(&cbc_key,ks)) != 0)
{
printf("Key error %d\n",j);
}
#endif
- printf("Doing cbc_cksum\n");
+ if (verbose) printf("Doing cbc_cksum\n");
des_key_sched(&cbc_key,ks);
cs=des_cbc_cksum(cbc_data[0], &cret,
sizeof(cbc_data), ks, &cbc_iv);