Lines Matching refs:V
37 #define REDUCE1BIT(V) do { \ argument
39 u64 T = U64(0xe100000000000000) & (0-(V.lo&1)); \
40 V.lo = (V.hi<<63)|(V.lo>>1); \
41 V.hi = (V.hi>>1 )^T; \
44 u32 T = 0xe1000000U & (0-(u32)(V.lo&1)); \
45 V.lo = (V.hi<<63)|(V.lo>>1); \
46 V.hi = (V.hi>>1 )^((u64)T<<32); \
90 u128 V; in gcm_init_4bit() local
97 V.hi = H[0]; in gcm_init_4bit()
98 V.lo = H[1]; in gcm_init_4bit()
101 for (Htable[8] = V, i = 4; i > 0; i >>= 1) { in gcm_init_4bit()
102 REDUCE1BIT(V); in gcm_init_4bit()
103 Htable[i] = V; in gcm_init_4bit()
109 for (V = *Hi, j = 1; j < i; ++j) { in gcm_init_4bit()
110 Hi[j].hi = V.hi ^ Htable[j].hi; in gcm_init_4bit()
111 Hi[j].lo = V.lo ^ Htable[j].lo; in gcm_init_4bit()
115 Htable[8] = V; in gcm_init_4bit()
116 REDUCE1BIT(V); in gcm_init_4bit()
117 Htable[4] = V; in gcm_init_4bit()
118 REDUCE1BIT(V); in gcm_init_4bit()
119 Htable[2] = V; in gcm_init_4bit()
120 REDUCE1BIT(V); in gcm_init_4bit()
121 Htable[1] = V; in gcm_init_4bit()
122 Htable[3].hi = V.hi ^ Htable[2].hi, Htable[3].lo = V.lo ^ Htable[2].lo; in gcm_init_4bit()
123 V = Htable[4]; in gcm_init_4bit()
124 Htable[5].hi = V.hi ^ Htable[1].hi, Htable[5].lo = V.lo ^ Htable[1].lo; in gcm_init_4bit()
125 Htable[6].hi = V.hi ^ Htable[2].hi, Htable[6].lo = V.lo ^ Htable[2].lo; in gcm_init_4bit()
126 Htable[7].hi = V.hi ^ Htable[3].hi, Htable[7].lo = V.lo ^ Htable[3].lo; in gcm_init_4bit()
127 V = Htable[8]; in gcm_init_4bit()
128 Htable[9].hi = V.hi ^ Htable[1].hi, Htable[9].lo = V.lo ^ Htable[1].lo; in gcm_init_4bit()
129 Htable[10].hi = V.hi ^ Htable[2].hi, Htable[10].lo = V.lo ^ Htable[2].lo; in gcm_init_4bit()
130 Htable[11].hi = V.hi ^ Htable[3].hi, Htable[11].lo = V.lo ^ Htable[3].lo; in gcm_init_4bit()
131 Htable[12].hi = V.hi ^ Htable[4].hi, Htable[12].lo = V.lo ^ Htable[4].lo; in gcm_init_4bit()
132 Htable[13].hi = V.hi ^ Htable[5].hi, Htable[13].lo = V.lo ^ Htable[5].lo; in gcm_init_4bit()
133 Htable[14].hi = V.hi ^ Htable[6].hi, Htable[14].lo = V.lo ^ Htable[6].lo; in gcm_init_4bit()
134 Htable[15].hi = V.hi ^ Htable[7].hi, Htable[15].lo = V.lo ^ Htable[7].lo; in gcm_init_4bit()
146 V = Htable[j]; in gcm_init_4bit()
147 Htable[j].hi = V.lo; in gcm_init_4bit()
148 Htable[j].lo = V.hi; in gcm_init_4bit()
151 V = Htable[j]; in gcm_init_4bit()
152 Htable[j].hi = V.lo << 32 | V.lo >> 32; in gcm_init_4bit()
153 Htable[j].lo = V.hi << 32 | V.hi >> 32; in gcm_init_4bit()