MAC functions requiring single-use secret keys.
GHASH is a universal hash function that uses multiplication by a fixed parameter within a Galois field.
It is not a general purpose hash function - The key must be secret, unpredictable and never reused.
GHASH is typically used to compute the authentication tag in the AES-GCM construction.
pub const Ghash = Hash(.big, true)POLYVAL is a universal hash function that uses multiplication by a fixed parameter within a Galois field.
It is not a general purpose hash function - The key must be secret, unpredictable and never reused.
POLYVAL is typically used to compute the authentication tag in the AES-GCM-SIV construction.
pub const Polyval = Hash(.little, false)pub const onetimeauth = struct {
pub const Ghash = @import("crypto/ghash_polyval.zig").Ghash;
pub const Polyval = @import("crypto/ghash_polyval.zig").Polyval;
pub const Poly1305 = @import("crypto/poly1305.zig").Poly1305;
}