hmac - The Go Programming Language

Golang

Package hmac

import "crypto/hmac"
Overview
Index

Overview ?

Overview ?

Package hmac 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

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

Package files

hmac.go

func New

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

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