applied cryptography - protocols, algorithms, and source code in c

2 this fits into 16 bits y 0x10001l x if y 1 return

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 10L, 0×00404010L, 0x20404000L, 0x20400010L, 0×00004010L, 0x20000000L, 0×00404000L, 0×00000000L, 0x20400000L, 0x20004010L, 0×00400010L, 0x20404010L, 0×00400000L, 0x20000010L, 0×00004010L, 0×00004000L, 0x20400010L, 0x20404000L, 0x20000000L, 0×00404000L, 0x20000010L, 0×00004010L, 0x20400000L, 0x20400010L, 0×00404010L, 0×00000000L, 0x20004010L }; static unsigned long SP7[64] = { 0×00200000L, 0×04200002L, 0×04000802L, 0×00000000L, 0×00000800L, 0×04000802L, 0×00200802L, 0×04200800L, 0×04200802L, 0×00000002L, 0×04000800L, 0×04000002L, 0×04200000L, 0×00200800L, 0×04000000L, 0×04000802L, 0×00200002L, 0×04200800L, 0×00000802L, 0×00200800L, 0×00000000L, 0×04000002L, 0×00200000L, 0×04000000L, 0×00200802L, 0×04200000L, 0×00000800L, 0×00000002L, 0×00200800L, 0×04200002L, 0×04000000L, 0×00000802L, 0×04000002L, 0×00000000L, 0×00200802L, 0×04000800L, 0×00000000L, 0×04200002L, 0×00200002L, 0×04200800L, 0×00000802L, 0×04000000L, 0×00200000L, 0×04200002L, 0×04000800L, 0×00200802L, 0×04200802L, 0×00000002L, 0×04200000L, 0×00000800L, 0×04000002L, 0×00000802L, 0×04000800L, 0×00200002L, 0×04200802L, 0×00200800L, 0×04000802L, 0×00000002L, 0×00200000L, 0×04200800L, 0×04200000L, 0×04200802L, 0×00000800L, 0×00200002L }; static unsigned long SP8[64] = { 0x10001040L, 0×00001000L, 0x10000000L, 0x10001040L, 0×00040040L, 0x10040000L, 0x10041000L, 0×00041040L, 0x10040000L, 0x10000040L, 0×00041000L, 0×00040040L, 0×00001040L, 0×00000000L, 0x10000040L, 0x10001000L, 0×00041040L, 0×00040000L, 0×00000040L, 0x10040040L, 0x10001000L, 0×00000040L, 0x10040040L, 0x10000000L, 0×00000000L, 0x10041040L, 0x10040000L, 0x10001000L, 0x10041040L, 0×00041000L, 0×00001040L, 0×00040040L, 0×00040000L, 0×00000040L, 0x10041040L, 0×00001000L, 0x10001000L, 0x10040040L, 0×00000000L, 0×00041040L, 0x10041000L, 0×00001000L, 0x10000040L, 0×00040000L, 0×00040040L, 0x10001040L, 0×00041000L, 0x10000000L, 0x10041040L, 0x10000000L, 0×00041000L, 0×00000040L, 0×00001040L, 0x10041000L, 0x10040040L, 0×00040000L, 0×00001000L, 0×00041040L, 0x10040000L, 0x10001040L, 0x10000040L, 0×00000000L, 0×00001040L, 0x10041000L }; static void desfunc(block, keys) register unsigned long *block, *keys; { register unsigned long fval, work, right, leftt; register int round; leftt = block[0]; right = block[1]; work = ((leftt >> 4) ^ right) & 0×0f0f0f0fL; right ^= work; leftt...
View Full Document

Ask a homework question - tutors are online