hmac

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package hmac contains utilities for dealing with HMAC checksums.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append(data, secret []byte) []byte

Append computes HMAC-SHA256 checksum for a given block of bytes and appends it.

func VerifyAndStrip

func VerifyAndStrip(b, secret []byte) ([]byte, error)

VerifyAndStrip verifies that given block of bytes has correct HMAC-SHA256 checksum and strips it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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