chiark / gitweb /
serpent: Ad-hoc debugging facility
[secnet.git] / transform.c
index a0665ad97769c4926eadbfa110adc30ced2008c7..281e6671c6e63d031a5308c43e89c2854de20579 100644 (file)
@@ -13,6 +13,7 @@
 #include "util.h"
 #include "serpent.h"
 #include "unaligned.h"
+#include "hexdebug.h"
 
 /* Required key length in bytes */
 #define REQUIRED_KEYLEN ((512+64+32)/8)
@@ -49,10 +50,8 @@ static bool_t transform_setkey(void *sst, uint8_t *key, int32_t keylen)
 
 #if 0
     {
-       int i;
        printf("Setting key to: ");
-       for (i=0; i<keylen; i++)
-           printf("%02x",key[i]);
+       hexdebug(stdout,key,keylen);
        printf("\n");
     }
 #endif /* 0 */