Movatterモバイル変換


[0]ホーム

URL:


hmac

packagestandard library
go1.25.5Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License:BSD-3-ClauseImports:7Imported by:0

Details

Repository

cs.opensource.google/go/go

Links

Documentation

Overview

Package hmac implements HMAC according toFIPS 198-1.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcMarkAsUsedInKDF

func MarkAsUsedInKDF(h *HMAC)

MarkAsUsedInKDF records that this HMAC instance is used as part of a KDF.

Types

typeHMAC

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

funcNew

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

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

func (*HMAC)BlockSize

func (h *HMAC) BlockSize()int

func (*HMAC)Cloneadded ingo1.25.0

func (h *HMAC) Clone() (hash.Cloner,error)

Clone implementshash.Cloner if the underlying hash does.Otherwise, it returns an error wrappingerrors.ErrUnsupported.

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)Write

func (h *HMAC) Write(p []byte) (nint, errerror)

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp