hmacpb

package
v0.0.0-...-e2e270a Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyKey         = errors.New("hmacpb: empty key")
	ErrInvalidSignature = errors.New("hmacpb: invalid signature")
)

Functions

func SignMarshal

func SignMarshal(k Key, msg proto.Message) ([]byte, error)

func VerifyUnmarshal

func VerifyUnmarshal(k Key, b []byte, m proto.Message) error

Types

type Key

type Key []byte

Jump to

Keyboard shortcuts

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