Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/crypto/opencrypto Remove some debugging code.



details:   https://anonhg.NetBSD.org/src/rev/75f6a499c602
branches:  trunk
changeset: 326110:75f6a499c602
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Sat Jan 18 20:10:34 2014 +0000

description:
Remove some debugging code.

diffstat:

 tests/crypto/opencrypto/h_md5.c |  13 +++----------
 1 files changed, 3 insertions(+), 10 deletions(-)

diffs (28 lines):

diff -r b74336545c59 -r 75f6a499c602 tests/crypto/opencrypto/h_md5.c
--- a/tests/crypto/opencrypto/h_md5.c   Sat Jan 18 19:44:41 2014 +0000
+++ b/tests/crypto/opencrypto/h_md5.c   Sat Jan 18 20:10:34 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: h_md5.c,v 1.4 2014/01/18 19:44:41 pgoyette Exp $ */
+/* $NetBSD: h_md5.c,v 1.5 2014/01/18 20:10:34 pgoyette Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -98,16 +98,9 @@
                if (res < 0)
                        err(1, "CIOCCRYPT test %zu", i);
 
-               if (memcmp(co.mac, tests[i].digest,
-                          sizeof(tests[i].digest))) {
-                       size_t j;
+               if (memcmp(co.mac, tests[i].digest, sizeof(tests[i].digest)))
+                       errx(1, "verification failed test %zu", i);
 
-                       printf(" Idx  Actual  Golden\n");
-                       for (j=0; j < sizeof(tests[i].digest); j++)
-                               printf("0x%02zx:  0x%02x   0x%02x\n",
-                                   j, buf[j], tests[i].digest[j]);
-                       errx(1, "verification failed test %zu", i);
-               }
                res = ioctl(fd, CIOCFSESSION, &cs.ses);
                if (res < 0)
                        err(1, "CIOCFSESSION test %zu", i);



Home | Main Index | Thread Index | Old Index