moar debug output

This commit is contained in:
Steffen Jaeckel 2013-03-14 23:47:50 +01:00
parent 8fcd408a98
commit 1c779b88f1
2 changed files with 13 additions and 1 deletions

View File

@ -119,6 +119,18 @@ int hkdf(int hash_idx, const unsigned char *salt, unsigned long saltlen,
XFREE(extracted);
return err;
}
#if 0
{
int j;
printf("\nPRK: 0x");
for(j=0; j < hashsize; j++) {
printf("%02x ", extracted[j]);
}
for(j=0; j < hashsize; j++) {
printf("%02x ", extracted[j]);
}
}
#endif
err = hkdf_expand(hash_idx, extracted, hashsize, info, infolen, out, outlen);
zeromem(extracted, hashsize);
XFREE(extracted);

View File

@ -110,7 +110,7 @@ int hkdf_test(void)
#if 0
{
unsigned int j;
printf("\LTC_HKDF-%s test #%d:\n", cases[i].Hash, i);
printf("\nLTC_HKDF-%s test #%d:\n", cases[i].Hash, i);
printf( "Result: 0x");
for(j=0; j < cases[i].L; j++) {
printf("%02x ", OKM[j]);