Lines Matching defs:u16
22 typedef unsigned u16;
39 static u16 FI( u16 in, u16 subkey )
41 u16 nine, seven;
42 static const u16 S7[128] = {
51 static const u16 S9[512] = {
88 nine = (u16)(in>>7)&0x1FF;
89 seven = (u16)(in&0x7F);
92 nine = (u16)(S9[nine] ^ seven);
93 seven = (u16)(S7[seven] ^ (nine & 0x7F));
96 nine = (u16)(S9[nine] ^ seven);
97 seven = (u16)(S7[seven] ^ (nine & 0x7F));
98 return (u16)(seven<<9) + nine;
103 u16 left, right;
106 left = (u16)(in>>16);
107 right = (u16) in&0xFFFF;
127 u16 l, r, a, b;
129 l = (u16)(in>>16);
130 r = (u16)(in)&0xFFFF;
132 a = (u16) (l & key->kasumi.KLi1[round_no]);
134 b = (u16)(r | key->kasumi.KLi2[round_no]);
197 static const u16 C[8] = { 0x0123,0x4567,0x89AB,0xCDEF, 0xFEDC,0xBA98,0x7654,0x3210 };
198 u16 ukey[8], Kprime[8];
214 ukey[n] = (((u16)key[2*n]) << 8) | key[2*n+1];