MCPcopy Create free account
hub / github.com/F-Stack/f-stack / gf128_mul4

Function gf128_mul4

freebsd/opencrypto/gfmult.c:235–247  ·  view source on GitHub ↗

* Calculate a*h^4 + b*h^3 + c*h^2 + d*h, or: * (((a*h+b)*h+c)*h+d)*h */

Source from the content-addressed store, hash-verified

233 * (((a*h+b)*h+c)*h+d)*h
234 */
235struct gf128
236gf128_mul4(struct gf128 a, struct gf128 b, struct gf128 c, struct gf128 d,
237 struct gf128table4 *tbl)
238{
239 struct gf128 tmp;
240
241 tmp = MAKE_GF128(0, 0);
242
243 tmp = gfmultword4(a.v[1], b.v[1], c.v[1], d.v[1], tmp, tbl);
244 tmp = gfmultword4(a.v[0], b.v[0], c.v[0], d.v[0], tmp, tbl);
245
246 return tmp;
247}
248
249/*
250 * a = data[0..15] + r

Callers

nothing calls this directly

Calls 1

gfmultword4Function · 0.85

Tested by

no test coverage detected