#include #include #include #include #include #include #include typedef uint8_t byte; typedef uint32_t word; typedef uint16_t half; #define MAX 4096 void dump256(byte *hash) { int i, b = 1; for(i=0; i<256; i++) { fprintf(stderr, "0x%02x, ", hash[i]); if(b == 16) { fprintf(stderr, "\n"); b = 1; } else b++; } fprintf(stderr, "\n"); } int main() { byte raw[MAX]; byte hash[256] = {0}, reg[256] = {0}, out; int i, b=0, has=0; fread(raw, MAX, 1, stdin); memset(hash, 0, 256); for (i=0; i