hmac

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 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