hmacutil

package
v0.63.10 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

hmacutil provides HMAC utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HMACSHA256

func HMACSHA256(key, msg []byte) []byte

func HMACSHA256Base32

func HMACSHA256Base32(key, msg []byte) string

func HMACSHA256Hex

func HMACSHA256Hex(key, msg []byte) string

func Validate

func Validate(key, msg, msgMAC []byte) bool

Validate compares MACs for equality without leaking timing information.

func ValidateBase32

func ValidateBase32(key, msg []byte, msgMAC string) (bool, error)

ValidateBase32 compares MACs for equality without leaking timing information.

func ValidateHex

func ValidateHex(key, msg []byte, msgMAC string) (bool, error)

ValidateHex compares MACs for equality without leaking timing information.

Types

This section is empty.

Jump to

Keyboard shortcuts

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