Programming Search⌘K

Other modules, page 2 of 9

The entries of the 224 modules of the Zig reference that have fewer than 20 entries each, in the order of the module names. This page has 1,638 cards.

std.crypto.aead.salsa_poly.XSalsa20Poly1305.decrypt

pub fn decrypt(m: []u8, c: []const u8, tag: [tag_length]u8, ad: []const u8, npub: [nonce_length]u8, k: [key_length]u8) AuthenticationError!void

`m`: Message `c`: Ciphertext `tag`: Authentication tag `ad`: Associated data (see below) `npub`: Public nonce `k`: Private key Asserts `c.len == m.len`.

Kind
function
Module
std.crypto.aead.salsa_poly.XSalsa20Poly1305

Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.

std.crypto.auth.cbc_mac.CbcMac

pub fn CbcMac(comptime BlockCipher: type) type

FIPS 113 (1985): Computer Data Authentication https://csrc.nist.gov/publications/detail/fips/113/archive/1985-05-30 WARNING: CBC-MAC is insecure for variable-length messages without additional protection.

Kind
type function
Module
std.crypto.auth.cbc_mac

Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.

std.crypto.core.modes.ctrSlice

pub fn ctrSlice(comptime BlockCipher: anytype, block_cipher: BlockCipher, dst: []u8, src: []const u8, iv: [BlockCipher.block_length]u8, endian: std.builtin.Endian, comptime counter_offset: usize, comptime counter_size: usize) void

Counter mode with configurable counter position and size.

Kind
function
Module
std.crypto.core.modes

Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.