hmac

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HMAC

type HMAC struct {
	// contains filtered or unexported fields
}

func New

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

New returns a new HMAC hash using the given hash.Hash type and key. New functions like sha256.New from crypto/sha256 can be used as h. h must return a new Hash every time it is called. Note that unlike other hash implementations in the standard library, the returned Hash does not implement encoding.BinaryMarshaler or encoding.BinaryUnmarshaler.

func (*HMAC) BlockSize

func (h *HMAC) BlockSize() int

func (*HMAC) Reset

func (h *HMAC) Reset()

func (*HMAC) Size

func (h *HMAC) Size() int

func (*HMAC) Sum

func (h *HMAC) Sum(in []byte) []byte

func (*HMAC) Wipe

func (h *HMAC) Wipe()

wipe date

func (*HMAC) Write

func (h *HMAC) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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