structstd.crypto.onetimeauth[src]

MAC functions requiring single-use secret keys.

Types

TypeGhash[src]

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.

Source Code

Source code
pub const Ghash = Hash(.big, true)

TypePolyval[src]

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.

Source Code

Source code
pub const Polyval = Hash(.little, false)

Source Code

Source code
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;
}