cmac

package module
v0.0.0-...-ebd7188 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2017 License: BSD-2-Clause Imports: 5 Imported by: 1

Documentation

Overview

Package cmac implements CMAC as defined in RFC4493 and NIST SP800-38b.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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

New returns a hash.Hash computing AES-CMAC.

func NewWithCipher

func NewWithCipher(c cipher.Block) (hash.Hash, error)

NewWithCipher returns a hash.Hash computing CMAC using the given cipher.Block. The block cipher should have a block length of 8 or 16 bytes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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