Lines Matching full:acc
97 self.acc = 0
102 # acc += block
103 self.acc ^= Ghash.bytes_to_poly(data[i:i+16])
104 # acc = (acc * h) mod GHASH_POLY
108 product ^= self.acc << j
111 self.acc = product
115 return Ghash.poly_to_bytes(self.acc)
126 self.acc = 0
131 # acc += block
132 self.acc ^= int.from_bytes(data[i:i+16], byteorder='little')
133 # acc = (acc * h * x^-128) mod POLYVAL_POLY
137 product ^= self.acc << j
140 self.acc = product >> 128
144 return self.acc.to_bytes(16, byteorder='little')