Lines Matching refs:u64
99 typedef unsigned long u64; typedef
103 u64 h[3];
104 u64 r[2];
108 static u64 U8TOU64(const unsigned char *p) in U8TOU64()
110 return (((u64)(p[0] & 0xff)) | in U8TOU64()
111 ((u64)(p[1] & 0xff) << 8) | in U8TOU64()
112 ((u64)(p[2] & 0xff) << 16) | in U8TOU64()
113 ((u64)(p[3] & 0xff) << 24) | in U8TOU64()
114 ((u64)(p[4] & 0xff) << 32) | in U8TOU64()
115 ((u64)(p[5] & 0xff) << 40) | in U8TOU64()
116 ((u64)(p[6] & 0xff) << 48) | in U8TOU64()
117 ((u64)(p[7] & 0xff) << 56)); in U8TOU64()
121 static void U64TO8(unsigned char *p, u64 v) in U64TO8()
151 u64 r0, r1; in poly1305_blocks()
152 u64 s1; in poly1305_blocks()
153 u64 h0, h1, h2, c; in poly1305_blocks()
167 h0 = (u64)(d0 = (u128)h0 + U8TOU64(inp + 0)); in poly1305_blocks()
168 h1 = (u64)(d1 = (u128)h1 + (d0 >> 64) + U8TOU64(inp + 8)); in poly1305_blocks()
173 h2 += (u64)(d1 >> 64) + padbit; in poly1305_blocks()
185 h0 = (u64)d0; in poly1305_blocks()
186 h1 = (u64)(d1 += d0 >> 64); in poly1305_blocks()
187 h2 += (u64)(d1 >> 64); in poly1305_blocks()
217 u64 h0, h1, h2; in poly1305_emit()
218 u64 g0, g1, g2; in poly1305_emit()
220 u64 mask; in poly1305_emit()
227 g0 = (u64)(t = (u128)h0 + 5); in poly1305_emit()
228 g1 = (u64)(t = (u128)h1 + (t >> 64)); in poly1305_emit()
229 g2 = h2 + (u64)(t >> 64); in poly1305_emit()
240 h0 = (u64)(t = (u128)h0 + nonce[0] + ((u64)nonce[1]<<32)); in poly1305_emit()
241 h1 = (u64)(t = (u128)h1 + nonce[2] + ((u64)nonce[3]<<32) + (t >> 64)); in poly1305_emit()
250 typedef unsigned __int64 u64; typedef
252 typedef unsigned long u64; typedef
254 typedef unsigned long long u64; typedef
296 u64 d0, d1, d2, d3; in poly1305_blocks()
315 h0 = (u32)(d0 = (u64)h0 + U8TOU32(inp + 0)); in poly1305_blocks()
316 h1 = (u32)(d1 = (u64)h1 + (d0 >> 32) + U8TOU32(inp + 4)); in poly1305_blocks()
317 h2 = (u32)(d2 = (u64)h2 + (d1 >> 32) + U8TOU32(inp + 8)); in poly1305_blocks()
318 h3 = (u32)(d3 = (u64)h3 + (d2 >> 32) + U8TOU32(inp + 12)); in poly1305_blocks()
322 d0 = ((u64)h0 * r0) + in poly1305_blocks()
323 ((u64)h1 * s3) + in poly1305_blocks()
324 ((u64)h2 * s2) + in poly1305_blocks()
325 ((u64)h3 * s1); in poly1305_blocks()
326 d1 = ((u64)h0 * r1) + in poly1305_blocks()
327 ((u64)h1 * r0) + in poly1305_blocks()
328 ((u64)h2 * s3) + in poly1305_blocks()
329 ((u64)h3 * s2) + in poly1305_blocks()
331 d2 = ((u64)h0 * r2) + in poly1305_blocks()
332 ((u64)h1 * r1) + in poly1305_blocks()
333 ((u64)h2 * r0) + in poly1305_blocks()
334 ((u64)h3 * s3) + in poly1305_blocks()
336 d3 = ((u64)h0 * r3) + in poly1305_blocks()
337 ((u64)h1 * r2) + in poly1305_blocks()
338 ((u64)h2 * r1) + in poly1305_blocks()
339 ((u64)h3 * r0) + in poly1305_blocks()
385 u64 t; in poly1305_emit()
395 g0 = (u32)(t = (u64)h0 + 5); in poly1305_emit()
396 g1 = (u32)(t = (u64)h1 + (t >> 32)); in poly1305_emit()
397 g2 = (u32)(t = (u64)h2 + (t >> 32)); in poly1305_emit()
398 g3 = (u32)(t = (u64)h3 + (t >> 32)); in poly1305_emit()
414 h0 = (u32)(t = (u64)h0 + nonce[0]); in poly1305_emit()
415 h1 = (u32)(t = (u64)h1 + (t >> 32) + nonce[1]); in poly1305_emit()
416 h2 = (u32)(t = (u64)h2 + (t >> 32) + nonce[2]); in poly1305_emit()
417 h3 = (u32)(t = (u64)h3 + (t >> 32) + nonce[3]); in poly1305_emit()