hmac

package
v1.21.9 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2023 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からのsha256.NewのようなNew関数はhとして使用できます。 hは呼び出されるたびに新しいハッシュを返す必要があります。 標準ライブラリの他のハッシュ実装とは異なり、返されたハッシュは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