fn Cmac(comptime BlockCipher: type) type

NIST Special Publication 800-38B - The CMAC Mode for Authentication https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-38b.pdf

Parameters

BlockCipher: type,

Fields

cipher_ctx: optional_payload_safe,
k1: [BlockCipher.block.block_length]u8,
k2: [BlockCipher.block.block_length]u8,
buf: [BlockCipher.block.block_length]u8 = array_mul,
pos: usize = 0,

Functions

fn create(out: *[mac_length]u8, msg: []const u8, key: *const [key_length]u8) void

No documentation provided.

fn final(self: *Self, out: *[mac_length]u8) void

No documentation provided.

fn init(key: *const [key_length]u8) Self

No documentation provided.

fn update(self: *Self, msg: []const u8) void

No documentation provided.

Values

block_length
undefined
key_length
type
mac_length
undefined