hmac

package
v1.26.2 Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal added in v1.1.0

func Equal(mac1, mac2 []byte) bool

Equalは、タイミング情報を漏らさずに2つのMACを比較します。

func New

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

Newは、与えられた hash.Hash タイプとキーを使用して新しいHMACハッシュを返します。 crypto/sha256.New のようなNew関数をhとして使用できます。 hは呼び出されるたびに新しいHashを返す必要があります。 標準ライブラリの他のハッシュ実装とは異なり、 返されるHashは encoding.BinaryMarshaler または encoding.BinaryUnmarshaler を実装していないことに注意してください。

Types

This section is empty.

Jump to

Keyboard shortcuts

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