moar debug output
This commit is contained in:
parent
8fcd408a98
commit
1c779b88f1
@ -119,6 +119,18 @@ int hkdf(int hash_idx, const unsigned char *salt, unsigned long saltlen,
|
|||||||
XFREE(extracted);
|
XFREE(extracted);
|
||||||
return err;
|
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);
|
err = hkdf_expand(hash_idx, extracted, hashsize, info, infolen, out, outlen);
|
||||||
zeromem(extracted, hashsize);
|
zeromem(extracted, hashsize);
|
||||||
XFREE(extracted);
|
XFREE(extracted);
|
||||||
|
@ -110,7 +110,7 @@ int hkdf_test(void)
|
|||||||
#if 0
|
#if 0
|
||||||
{
|
{
|
||||||
unsigned int j;
|
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");
|
printf( "Result: 0x");
|
||||||
for(j=0; j < cases[i].L; j++) {
|
for(j=0; j < cases[i].L; j++) {
|
||||||
printf("%02x ", OKM[j]);
|
printf("%02x ", OKM[j]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user