Skip to main content

Module ghash

Module ghash 

Source
Expand description

Portable (software) implementation of GHASH field multiplication.

Structs§

GhashWideMul
Widening-multiply wrapper for the portable GHASH packing.
WideGhashProduct
An unreduced GHASH product, stored as the four 64-bit limbs (v0, v1, v2, v3) of the 256-bit schoolbook product. Values of this type can be summed by XOR and reduced once at the end via reduce.

Functions§

ghash_mul
Multiply two GHASH field elements using software implementation.
ghash_square
ghash_wide_mul
Widening multiply: the schoolbook polynomial product of two GHASH field elements, without the modular reduction. The unreduced result can be accumulated by XOR and reduced once at the end via WideGhashProduct::reduce.