DES 알고리즘 C
/* D E S */ #include typedef unsigned long DWORD; typedef unsigned short WORD; typedef unsigned char BYTE; typedef union { DWORD dw[2]; WORD w[4]; BYTE b[8]; } BIT64; BYTE mask[8] = {0x80,0x40,0x20,0x10,0x08,0x04,0x02,0x1}; void IP(BIT64 *text) /* IP테이블 연산 */ { BYTE ip_table[64] = { 58, 50, 42, 34, 26, 18, 10, 2, 60, 52, 44, 36, 28, 20, 12, 4, 62, 54, 46, 38, 30, 22, 14, 6, 64, 56, 48, 40, 32, 2..
2018. 12. 26.