hmac

package
v0.0.0-...-90c9d3a Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2010 License: BSD-3-Clause, GooglePatentClause Imports: 4 Imported by: 0

Documentation

Overview

The hmac package implements the Keyed-Hash Message Authentication Code (HMAC) as defined in U.S. Federal Information Processing Standards Publication 198. An HMAC is a cryptographic hash that uses a key to sign a message. The receiver verifies the hash by recomputing it using the same key.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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

New returns a new HMAC hash using the given hash and key.

func NewMD5

func NewMD5(key []byte) hash.Hash

NewMD5 returns a new HMAC-MD5 hash using the given key.

func NewSHA1

func NewSHA1(key []byte) hash.Hash

NewSHA1 returns a new HMAC-SHA1 hash using the given key.

Types

This section is empty.

Jump to

Keyboard shortcuts

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