You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was getting bad results with sizeof(in) and changed it to strlen instead
Just for sake of completion I'll pate my code program.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "keccak-tiny.h"
int main()
{
uint8_t *in = "The quick brown fox jumps over the lazy dog";
uint8_t out[64];
int i;
len = strlen(in);
shake256(out, 64, in, strlen(in));
printf("\nThe SHAKE-256 hash of '%s' is:\n", in);
for ( i = 0; i < 64; i++ )
{
printf("%02x", out[i]);
}
printf("\n");
return 0;
}
Example Usage: Output overflows buffer to stdin causing getchar() to close the console immediately after execution.
Output should be in bytes not bits. also noted by warmist .
Example where console windows remains open as it should
The text was updated successfully, but these errors were encountered: