cmac

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package cmac implements the CMAC mode for message authentication, as defined by NIST Special Publication 800-38B. When a 16-byte key is used, this matches the AES-CMAC algorithm defined by RFC 4493.

Index

Constants

View Source
const Size = aes.BlockSize

The size of an AES-CMAC checksum, in bytes.

Variables

This section is empty.

Functions

func New

func New(key []byte) (hash.Hash, error)

New returns an AES-CMAC hash using the supplied key. The key must be 16, 24, or 32 bytes long.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL