crypto

package
v0.0.0-...-0e3259e Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2020 License: MIT Imports: 6 Imported by: 2

Documentation

Overview

Package crypto "Every package should have a package comment, a block comment preceding the package clause. For multi-file packages, the package comment only needs to be present in one file, and any one will do. The package comment should introduce the package and provide information relevant to the package as a whole. It will appear first on the godoc page and should set up the detailed documentation that follows."

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidFileType = errors.New("invalid file type to encrypt")
)

Errors

Functions

func CheckMAC

func CheckMAC(message interface{}, messageMAC string) bool

CheckMAC reports whether messageMAC is a valid HMAC tag for message.

func GetMAC

func GetMAC(i interface{}) (string, error)

GetMAC generates and returns a hmac as a string.

func GetSha

func GetSha(i interface{}) (string, error)

GetSha generates and returns a sha256 as a string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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