Skip to content

Instantly share code, notes, and snippets.

@taida957789 taida957789/EOP_solver.c Secret
Last active Oct 31, 2018

Embed
What would you like to do?
EOP_solver.c
#include <stdint.h> // for uint32_t
#include <limits.h> // for CHAR_BIT
static inline uint32_t rotl32 (uint32_t n, unsigned int c)
{
const unsigned int mask = (CHAR_BIT*sizeof(n) - 1); // assumes width is a power of 2.
// assert ( (c<=mask) &&"rotate by type width or more");
c &= mask;
return (n<<c) | (n>>( (-c)&mask ));
}
static inline uint32_t rotr32 (uint32_t n, unsigned int c)
{
const unsigned int mask = (CHAR_BIT*sizeof(n) - 1);
// assert ( (c<=mask) &&"rotate by type width or more");
c &= mask;
return (n>>c) | (n<<( (-c)&mask ));
}
uint8_t _key[] = {0x6e,0x4d,0x1a,0xc0,0x36,0x66,0xcb,0xa4,0xa1,0x5b,0xf,0x5b,0x26,0x69,0x26,0x2b,0x8f,0xcb,0x75,0xef,0x2a,0x22,0x37,0xa0,0x9a,0x61,0x69,0xba,0x32,0x89,0x79,0x60,0x59,0xa8,0x6e,0x2,0x93,0x58,0x31,0xf1,0xa6,0x33,0x59,0x8b,0x67,0xac,0x2b,0xe7,0x4,0x89,0xcc,0x1a,0xef,0xd1,0x48,0x2e,0xab,0xd5,0x21,0x3f,0x1f,0x5a,0x33,0x69,0xf0,0x68,0x83,0xbe,0xc3,0x84,0xf7,0xf1,0x90,0x49,0x20,0x18,0x68,0xa1,0xce,0x18,0x57,0x91,0x96,0x33,0x47,0xf1,0xeb,0x21,0x72,0xf8,0x7a,0xfa,0x6c,0xbe,0xe6,0xab,0x7e,0x61,0x4e,0x51,0xc2,0x3f,0x77,0xec,0x6a,0xc3,0x18,0xc6,0xa4,0xf7,0xce,0xf9,0x1,0xb3,0xdc,0x75,0x7a,0x8c,0xe1,0xae,0x69,0x26,0xf2,0x24,0x5f,0x35,0xdb,0x9a,0x23,0xe1,0x4e,0x77,0xa0,0x34,0xf4,0xc8,0xef,0x97,0x7e,0xf4,0xf7,0x7d,0x79,0x43,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b,0x9b,0xaf,0x6a,0x89,0x89,0x78,0x66,0x5a,0x5a,0x29,0x79,0xd9,0xd9,0xec,0xd7,0xa1,0xa1,0xea,0x64,0x11,0x11,0xe2,0x6e,0x1f,0x1f,0x62,0xce,0xff,0xff,0xc8,0xfa,0x9e,0x9e,0xe5,0x86,0x40,0x40,0x56,0xf7,0xdc,0xdc,0x4b,0xb7,0x26,0x26,0xf9,0x9d,0x55,0x55,0x74,0x69,0x53,0x53,0x1c,0x1b,0x15,0x15,0x61,0x23,0xa7,0xa7,0x7c,0x63,0x5d,0x5d,0xcf,0x12,0xc1,0xc1,0xc0,0xf0,0x90,0x90,0x4a,0xec,0xc9,0xc9,0xfd,0x98,0x52,0x52,0x65,0x26,0xa0,0xa0,0x35,0x62,0xcc,0xcc,0xb5,0xc2,0x2c,0x2c,0x2a,0x94,0x81,0x81,0xeb,0x3f,0xfe,0xfe,0x43,0xbd,0x28,0x28,0x20,0x28,0x38,0x38,0x67,0x90,0x17,0x17,0x8a,0x1c,0x59,0x59,0xf6,0x7f,0x4,0x4,0x42,0xe6,0xc7,0xc7,0xd,0x54,0xe6,0xe6,0x63,0x95,0x10,0x10,0x72,0xda,0xe3,0xe3,0xcd,0xa4,0x76,0x76,0xd6,0x57,0x3c,0x3c,0xa,0xbc,0xb9,0xb9,0x40,0x50,0x70,0x70,0xdb,0x3,0xda,0xda,0xa3,0x65,0x80,0x80,0xfe,0x75,0xa,0xa,0xad,0xdc,0x3e,0x3e,0xb3,0x71,0x9c,0x9c,0xf7,0x24,0xeb,0xeb,0xa0,0x88,0xd8,0xd8,0x28,0x22,0x36,0x36,0x7f,0x8e,0x5,0x5,0xdd,0xb0,0x6a,0x6a,0x68,0x72,0x46,0x46,0xa5,0xd6,0x30,0x30,0x92,0x2,0x4b,0x4b,0xd1,0xbf,0x63,0x63,0x52,0xf2,0xdb,0xdb,0x2e,0x91,0x86,0x86,0x57,0xac,0x33,0x33,0x9d,0xe0,0x1a,0x1a,0x46,0xe3,0xc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0x2b,0x77,0x77,0x55,0x44,0x26,0x26,0xb7,0x4b,0x2,0x2,0x8b,0x7b,0xb7,0xb7,0xb6,0x2,0x7e,0x7e,0x5a,0x48,0x24,0x24,0x3c,0x30,0x1b,0x1b,0x11,0x14,0xdf,0xdf,0x8d,0xa4,0x80,0x80,0x65,0xa3,0xaf,0xaf,0xdd,0xe4,0xa2,0xa2,0xad,0x1e,0x86,0x86,0x91,0x2e,0x43,0x43,0xfc,0x17,0x91,0x91,0x1,0x49,0xcd,0xcd,0x93,0xbc,0xbb,0xbb,0x37,0x71,0x46,0x46,0x72,0x68,0x2b,0x2b,0xc7,0xb1,0xe0,0xe0,0xa0,0x80,0x9,0x9,0xf,0xc,0xac,0xac,0xa7,0x16,0x1,0x1,0xf1,0x89,0xa0,0xa0,0x26,0x65,0x85,0x85,0xeb,0xdc,0x3e,0x3e,0xdc,0xad,0x58,0x58,0xed,0x3,0x25,0x25,0xcd,0xb9,0xf2,0xf2,0xbe,0x98,0xb1,0xb1,0x42,0x8f,0xab,0xab,0xa2,0x12,0xdb,0xdb,0xf2,0x52,0x9b,0x9b,0x74,0xb7,0x23,0x23,0x39,0x34,0x5b,0x5b,0x97,0xf1,0x2c,0x2c,0xc2,0xb5,0xce,0xce,0xe9,0x4e,0xd5,0xd5,0xf8,0x5a,0x38,0x38,0x28,0x20,0x69,0x69,0xca,0x2f,0x30,0x30,0xd6,0xa5,0xc7,0xc7,0xe6,0x42,0x31,0x31,0x27,0x2c,0x67,0x67,0xc0,0x27,0xef,0xef,0x5b,0x1,0xe8,0xe8,0x5e,0x5,0x7c,0x7c,0xd1,0x33,0x20,0x20,0x43,0xc6,0x29,0x29,0x4c,0xca,0x70,0x70,0x50,0x40,0xf3,0xf3,0x4f,0x11,0xfe,0xfe,0x3f,0xeb,0x55,0x55,0x9d,0xf9,0xe7,0xe7,0xa5,0x84,0x16,0x16,0x61,0xee,0xdc,0xdc,0xf7,0x56,0x47,0x47,0x83,0xe1,0x95,0x95,0x7e,0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11,0xf3,0x68,0xc2,0x3d,0xc2,0x14,0x1c,0x10,0x1c,0x81,0xc,0x73,0xc,0xb8,0x2f,0x47,0x2f,0x23,0xa7,0x61,0xa7,0x96,0xca,0xb8,0xca,0x91,0x86,0x2e,0x86,0x3f,0xfe,0xeb,0xfe,0x8f,0x94,0x36,0x94,0x6e,0x1f,0xe2,0x1f,0x92,0x5c,0xf5,0x5c,0x1c,0x59,0x8a,0x59,0x9a,0x19,0x6f,0x19,0xed,0x58,0x3,0x58,0x40,0xfa,0x1d,0xfa,0x7,0x4c,0x96,0x4c,0x88,0xd8,0xa0,0xd8,0x18,0xcf,0xc7,0xcf,0x8d,0xdf,0xa4,0xdf,0x29,0xa9,0x69,0xa9,0x3,0xda,0xdb,0xda,0x36,0x2a,0x38,0x2a,0xf9,0x44,0x13,0x44,0x17,0xc6,0xcb,0xc6,0xa4,0x76,0xcd,0x76,0x58,0x35,0xda,0x35,0xc4,0xf1,0x6a,0xf1,0x10,0x8a,0x5d,0x8a,0x4,0x96,0x4d,0x96,0x13,0x50,0x86,0x50,0xca,0x69,0x2f,0x69,0xa9,0x34,0x53,0x34,0x1a,0x84,0x55,0x84,0x1e,0x12,0x18,0x12,0x15,0x8d,0x59,0x8d,0xeb,0x85,0xdc,0x85,0x90,0x17,0x67,0x17,0x21,0xec,0xf3,0xec,0xe4,0x8c,0xd0,0x8c,0x5c,0xa3,0x97,0xa3,0xa3,0x3a,0x5b,0x3a,0x35,0xf0,0xe3,0xf0,0xe6,0xc7,0x42,0xc7,0xc1,0xf6,0x6e,0xf6,0x6b,0x18,0xe6,0x18,0x64,0x11,0xea,0x11,0x39,0x23,0x34,0x23,0xa0,0xe0,0x80,0xe0,0x7e,0x95,0xbf,0x95,0x9e,0x8f,0x22,0x8f,0xba,0x64,0xd5,0x64,0x53,0xaa,0x9b,0xaa,0xd2,0xa6,0xe8,0xa6,0x56,0xad,0x9f,0xad,0xdd,0xaf,0xe4,0xaf,0xac,0x33,0x57,0x33,0x73,0x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8,0x75,0xfe,0xa,0x75,0x51,0x9,0xe1,0x51,0xd3,0xa1,0x37,0xd3,0x6a,0xaf,0x89,0x6a,0x42,0x8f,0xb1,0x42,0x4,0x4d,0x96,0x4,0x8c,0xed,0x4e,0x8c,0xc3,0xfc,0xbd,0xc3,0xda,0x72,0xe3,0xda,0x3a,0xef,0xf9,0x3a,0x37,0x71,0xbb,0x37,0x8a,0x32,0x93,0x8a,0xfe,0x85,0x8,0xfe,0xc2,0xb5,0x2c,0xc2,0x15,0x59,0x8d,0x15,0x30,0xe7,0xf7,0x30,0xcb,0x66,0xf8,0xcb,0x74,0xb7,0x9b,0x74,0x9e,0x22,0x8f,0x9e,0x66,0x78,0x5a,0x66,0x39,0x34,0x23,0x39,0x1b,0x1c,0x15,0x1b,0xec,0x4a,0xc9,0xec,0x29,0x69,0xa9,0x29,0xf2,0x52,0xdb,0xf2,0x22,0x28,0x36,0x22,0x31,0xae,0x66,0x31,0xf4,0x8d,0x6,0xf4,0x85,0x3e,0x9a,0x85,0x47,0x8b,0xb6,0x47,0x7e,0xbf,0x95,0x7e,0x4f,0x11,0xf3,0x4f,0xed,0x3,0x58,0xed,0xe5,0x99,0x1d,0xe5,0x45,0x19,0xfd,0x45,0x92,0xf5,0x5c,0x92,0xe6,0x42,0xc7,0xe6,0x34,0xaa,0x61,0x34,0x14,0x10,0x1c,0x14,0x35,0xe3,0xf0,0x35,0xaf,0x8c,0xe9,0xaf,0x8,0x9a,0x45,0x8,0x27,0x2c,0x31,0x27,0x5,0x4,0x7,0x5,0x2e,0xff,0xe5,0x2e,0xef,0x91,0x13,0xef,0x77,0x6c,0x41,0x77,0xa8,0x1a,0xa5,0xa8,0xd4,0x37,0x7b,0xd4,0xd,0x9e,0x42,0xd,0xac,0x57,0x33,0xac,0xdb,0x3b,0x72,0xdb,0xbd,0x43,0x28,0xbd,0x80,0x3a,0x9d,0x80,0x65,0xa3,0x80,0x65,0xe,0x45,0x98,0xe,0x81,0x73,0xc,0x81,0xb8,0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b,0x52,0x9f,0x6b,0x1e,0x9f,0x8e,0x7f,0x5,0x8e,0x98,0xfd,0x52,0x98,0x69,0x74,0x53,0x69,0xbc,0xa,0xb9,0xbc,0x33,0x3c,0x2d,0x33,0xba,0xd5,0x64,0xba,0x78,0x60,0x48,0x78,0xb9,0xe,0xbe,0xb9,0xa3,0x5b,0x3a,0xa3,0x3c,0x30,0x24,0x3c,0xf,0xc,0x9,0xf,0x96,0xb8,0xca,0x96,0xa1,0xc9,0x71,0xa1,0xbe,0x98,0xf2,0xbe,0xca,0x2f,0x69,0xca,0x2f,0xb6,0x74,0x2f,0x90,0x67,0x17,0x90,0xc4,0x6a,0xf1,0xc4,0xcc,0xf0,0xb4,0xcc,0xfa,0xc8,0x9e,0xfa,0x10,0x5d,0x8a,0x10,0x9c,0xb0,0xc4,0x9c,0xe9,0x4e,0xce,0xe9,0x9b,0x26,0x88,0x9b,0x9a,0x6f,0x19,0x9a,0x13,0x86,0x50,0x13,0x4e,0x58,0x62,0x4e,0xa7,0x16,0xac,0xa7,0x16,0x82,0x57,0x16,0xb3,0x6,0xb0,0xb3};
uint8_t get_byte(uint32_t v, int position)
{
return (v >> position * 8) & 0xFF;
}
void print_hex(char* buff, uint32_t size)
{
for (int i = 0; i < size; i ++) {
printf("%02x ", (uint8_t)(buff[i]&0xFF));
if ( i > 0 && i % 8 == 7)
puts("");
}
puts("");
}
char input[49];
char output[49];
char xorBuf[16];
int main()
{
uint8_t * hash = (uint8_t*)malloc(49);
memcpy(hash, "\x4f\x6f\xa7\x87\xe9\x51\x87\x64\x38\x2a\x46\xe5\x4f\x21\x9e\x1c\xcd\x65\xe1\x9a\x4f\xcf\xde\x52\x09\xbf\x53\xc4\xb0\x95\x75\x31\xac\x2f\xf4\x97\x1d\xa5\x9a\x02\xa8\xff\xae\x2e\xb9\x70\xcc\x02\x00", 49);
memset(output, 0, 49);
//scanf("%49s", &input);
memcpy(input, hash, 49);
memset(xorBuf, 0, 16);
// if(strlen(input) < 48) {
// puts("No");
// return 0;
// }
char ptr_0[16];
char * ptr_8 = &ptr_0[8];
char buff[16];
memset(buff, 0, 16);
char* ptr_out_0 = buff;
uint32_t* key = (uint32_t*)_key;
for(int i = 0 ; i < 48; i+=16)
{
int h1, h2, h3, h4, h5, h6;
h3 = *(uint32_t*)(input + i);
h4 = *(uint32_t*)(input + i + 4);
h1 = *(uint32_t*)(input + i + 8);
h2 = *(uint32_t*)(input + i + 12);
h3 ^= key[4];
h4 ^= key[5];
h1 ^= key[6];
h2 ^= key[7];
h5 = key[ (get_byte(h3, 0) + 0x40) ] ^ key[ (get_byte(h3, 1) + 0x140) ] ^ key[ (get_byte(h3, 2) + 0x240) ] ^ key[ (get_byte(h3, 3) + 0x340) ];
h6 = key[ (get_byte(h4, 3) + 0x40) ] ^ key[ (get_byte(h4, 0) + 0x140) ] ^ key[ (get_byte(h4, 1) + 0x240) ] ^ key[ (get_byte(h4, 2) + 0x340) ];
h2 ^= key[39] + h5 + 2 * h6;
h2 = rotr32(h2, 1);
h1 = rotl32(h1, 1);
h1 ^= key[38] + h6 + h5;
h5 = key[ (get_byte(h1, 0) + 0x40) ] ^ key[ (get_byte(h1, 1) + 0x140) ] ^ key[ (get_byte(h1, 2) + 0x240) ] ^ key[ (get_byte(h1, 3) + 0x340) ];
h6 = key[ (get_byte(h2, 3) + 0x40) ] ^ key[ (get_byte(h2, 0) + 0x140) ] ^ key[ (get_byte(h2, 1) + 0x240) ] ^ key[ (get_byte(h2, 2) + 0x340) ];
h4 ^= key[37] + h5 + 2 * h6;
h4 = rotr32(h4, 1);
h3 = rotl32(h3, 1);
h3 ^= key[36] + h6 + h5;
h5 = key[ (get_byte(h3, 0) + 0x40) ] ^ key[ (get_byte(h3, 1) + 0x140) ] ^ key[ (get_byte(h3, 2) + 0x240) ] ^ key[ (get_byte(h3, 3) + 0x340) ];
h6 = key[ (get_byte(h4, 3) + 0x40) ] ^ key[ (get_byte(h4, 0) + 0x140) ] ^ key[ (get_byte(h4, 1) + 0x240) ] ^ key[ (get_byte(h4, 2) + 0x340) ];
h2 ^= key[35] + h5 + 2 * h6;
h2 = rotr32(h2, 1);
h1 = rotl32(h1, 1);
h1 ^= key[34] + h6 + h5;
h5 = key[ (get_byte(h1, 0) + 0x40) ] ^ key[ (get_byte(h1, 1) + 0x140) ] ^ key[ (get_byte(h1, 2) + 0x240) ] ^ key[ (get_byte(h1, 3) + 0x340) ];
h6 = key[ (get_byte(h2, 3) + 0x40) ] ^ key[ (get_byte(h2, 0) + 0x140) ] ^ key[ (get_byte(h2, 1) + 0x240) ] ^ key[ (get_byte(h2, 2) + 0x340) ];
h4 ^= key[33] + h5 + 2 * h6;
h4 = rotr32(h4, 1);
h3 = rotl32(h3, 1);
h3 ^= key[32] + h6 + h5;
h5 = key[ (get_byte(h3, 0) + 0x40) ] ^ key[ (get_byte(h3, 1) + 0x140) ] ^ key[ (get_byte(h3, 2) + 0x240) ] ^ key[ (get_byte(h3, 3) + 0x340) ];
h6 = key[ (get_byte(h4, 3) + 0x40) ] ^ key[ (get_byte(h4, 0) + 0x140) ] ^ key[ (get_byte(h4, 1) + 0x240) ] ^ key[ (get_byte(h4, 2) + 0x340) ];
h2 ^= key[31] + h5 + 2 * h6;
h2 = rotr32(h2, 1);
h1 = rotl32(h1, 1);
h1 ^= key[30] + h6 + h5;
h5 = key[ (get_byte(h1, 0) + 0x40) ] ^ key[ (get_byte(h1, 1) + 0x140) ] ^ key[ (get_byte(h1, 2) + 0x240) ] ^ key[ (get_byte(h1, 3) + 0x340) ];
h6 = key[ (get_byte(h2, 3) + 0x40) ] ^ key[ (get_byte(h2, 0) + 0x140) ] ^ key[ (get_byte(h2, 1) + 0x240) ] ^ key[ (get_byte(h2, 2) + 0x340) ];
h4 ^= key[29] + h5 + 2 * h6;
h4 = rotr32(h4, 1);
h3 = rotl32(h3, 1);
h3 ^= key[28] + h6 + h5;
h5 = key[ (get_byte(h3, 0) + 0x40) ] ^ key[ (get_byte(h3, 1) + 0x140) ] ^ key[ (get_byte(h3, 2) + 0x240) ] ^ key[ (get_byte(h3, 3) + 0x340) ];
h6 = key[ (get_byte(h4, 3) + 0x40) ] ^ key[ (get_byte(h4, 0) + 0x140) ] ^ key[ (get_byte(h4, 1) + 0x240) ] ^ key[ (get_byte(h4, 2) + 0x340) ];
h2 ^= key[27] + h5 + 2 * h6;
h2 = rotr32(h2, 1);
h1 = rotl32(h1, 1);
h1 ^= key[26] + h6 + h5;
h5 = key[ (get_byte(h1, 0) + 0x40) ] ^ key[ (get_byte(h1, 1) + 0x140) ] ^ key[ (get_byte(h1, 2) + 0x240) ] ^ key[ (get_byte(h1, 3) + 0x340) ];
h6 = key[ (get_byte(h2, 3) + 0x40) ] ^ key[ (get_byte(h2, 0) + 0x140) ] ^ key[ (get_byte(h2, 1) + 0x240) ] ^ key[ (get_byte(h2, 2) + 0x340) ];
h4 ^= key[25] + h5 + 2 * h6;
h4 = rotr32(h4, 1);
h3 = rotl32(h3, 1);
h3 ^= key[24] + h6 + h5;
h5 = key[ (get_byte(h3, 0) + 0x40) ] ^ key[ (get_byte(h3, 1) + 0x140) ] ^ key[ (get_byte(h3, 2) + 0x240) ] ^ key[ (get_byte(h3, 3) + 0x340) ];
h6 = key[ (get_byte(h4, 3) + 0x40) ] ^ key[ (get_byte(h4, 0) + 0x140) ] ^ key[ (get_byte(h4, 1) + 0x240) ] ^ key[ (get_byte(h4, 2) + 0x340) ];
h2 ^= key[23] + h5 + 2 * h6;
h2 = rotr32(h2, 1);
h1 = rotl32(h1, 1);
h1 ^= key[22] + h6 + h5;
h5 = key[ (get_byte(h1, 0) + 0x40) ] ^ key[ (get_byte(h1, 1) + 0x140) ] ^ key[ (get_byte(h1, 2) + 0x240) ] ^ key[ (get_byte(h1, 3) + 0x340) ];
h6 = key[ (get_byte(h2, 3) + 0x40) ] ^ key[ (get_byte(h2, 0) + 0x140) ] ^ key[ (get_byte(h2, 1) + 0x240) ] ^ key[ (get_byte(h2, 2) + 0x340) ];
h4 ^= key[21] + h5 + 2 * h6;
h4 = rotr32(h4, 1);
h3 = rotl32(h3, 1);
h3 ^= key[20] + h6 + h5;
h5 = key[ (get_byte(h3, 0) + 0x40) ] ^ key[ (get_byte(h3, 1) + 0x140) ] ^ key[ (get_byte(h3, 2) + 0x240) ] ^ key[ (get_byte(h3, 3) + 0x340) ];
h6 = key[ (get_byte(h4, 3) + 0x40) ] ^ key[ (get_byte(h4, 0) + 0x140) ] ^ key[ (get_byte(h4, 1) + 0x240) ] ^ key[ (get_byte(h4, 2) + 0x340) ];
h2 ^= key[19] + h5 + 2 * h6;
h2 = rotr32(h2, 1);
h1 = rotl32(h1, 1);
h1 ^= key[18] + h6 + h5;
h5 = key[ (get_byte(h1, 0) + 0x40) ] ^ key[ (get_byte(h1, 1) + 0x140) ] ^ key[ (get_byte(h1, 2) + 0x240) ] ^ key[ (get_byte(h1, 3) + 0x340) ];
h6 = key[ (get_byte(h2, 3) + 0x40) ] ^ key[ (get_byte(h2, 0) + 0x140) ] ^ key[ (get_byte(h2, 1) + 0x240) ] ^ key[ (get_byte(h2, 2) + 0x340) ];
h4 ^= key[17] + h5 + 2 * h6;
h4 = rotr32(h4, 1);
h3 = rotl32(h3, 1);
h3 ^= key[16] + h6 + h5;
h5 = key[ (get_byte(h3, 0) + 0x40) ] ^ key[ (get_byte(h3, 1) + 0x140) ] ^ key[ (get_byte(h3, 2) + 0x240) ] ^ key[ (get_byte(h3, 3) + 0x340) ];
h6 = key[ (get_byte(h4, 3) + 0x40) ] ^ key[ (get_byte(h4, 0) + 0x140) ] ^ key[ (get_byte(h4, 1) + 0x240) ] ^ key[ (get_byte(h4, 2) + 0x340) ];
h2 ^= key[15] + h5 + 2 * h6;
h2 = rotr32(h2, 1);
h1 = rotl32(h1, 1);
h1 ^= key[14] + h6 + h5;
h5 = key[ (get_byte(h1, 0) + 0x40) ] ^ key[ (get_byte(h1, 1) + 0x140) ] ^ key[ (get_byte(h1, 2) + 0x240) ] ^ key[ (get_byte(h1, 3) + 0x340) ];
h6 = key[ (get_byte(h2, 3) + 0x40) ] ^ key[ (get_byte(h2, 0) + 0x140) ] ^ key[ (get_byte(h2, 1) + 0x240) ] ^ key[ (get_byte(h2, 2) + 0x340) ];
h4 ^= key[13] + h5 + 2 * h6;
h4 = rotr32(h4, 1);
h3 = rotl32(h3, 1);
h3 ^= key[12] + h6 + h5;
h5 = key[ (get_byte(h3, 0) + 0x40) ] ^ key[ (get_byte(h3, 1) + 0x140) ] ^ key[ (get_byte(h3, 2) + 0x240) ] ^ key[ (get_byte(h3, 3) + 0x340) ];
h6 = key[ (get_byte(h4, 3) + 0x40) ] ^ key[ (get_byte(h4, 0) + 0x140) ] ^ key[ (get_byte(h4, 1) + 0x240) ] ^ key[ (get_byte(h4, 2) + 0x340) ];
h2 ^= key[11] + h5 + 2 * h6;
h2 = rotr32(h2, 1);
h1 = rotl32(h1, 1);
h1 ^= key[10] + h6 + h5;
h5 = key[ (get_byte(h1, 0) + 0x40) ] ^ key[ (get_byte(h1, 1) + 0x140) ] ^ key[ (get_byte(h1, 2) + 0x240) ] ^ key[ (get_byte(h1, 3) + 0x340) ];
h6 = key[ (get_byte(h2, 3) + 0x40) ] ^ key[ (get_byte(h2, 0) + 0x140) ] ^ key[ (get_byte(h2, 1) + 0x240) ] ^ key[ (get_byte(h2, 2) + 0x340) ];
h4 ^= key[9] + h5 + 2 * h6;
h4 = rotr32(h4, 1);
h3 = rotl32(h3, 1);
h3 ^= key[8] + h6 + h5;
//--------------------------------------------------
h1 ^= key[0];
h2 ^= key[1];
h3 ^= key[2];
h4 ^= key[3];
memcpy(ptr_out_0, &h1, 4);
memcpy(ptr_out_0 + 4, &h2, 4);
memcpy(ptr_out_0 + 8, &h3, 4);
memcpy(ptr_out_0 + 12, &h4, 4);
for(int j = 0 ; j < 16; j++){
ptr_out_0[j] ^= xorBuf[j];
}
memcpy(xorBuf, hash + i, 16);
memcpy(output + i, ptr_out_0, 16);
printf(ptr_out_0);
}
puts("Out: ");
print_hex(output, 48);
puts(output);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.