cryptolib

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2021 License: CC0-1.0, CC0-1.0, CC0-1.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HashMap = map[string]crypto.Hash{
	"md5":    crypto.MD5,
	"sha1":   crypto.SHA1,
	"sha256": crypto.SHA256,
	"sha512": crypto.SHA512,
}

HashMap is a map from hash names to hashes.

Functions

func HashArg

func HashArg(c *rt.GoCont, n int) (hash.Hash, error)

HashArg turns a continuation argument into a hash.Hash.

func ValueToHash

func ValueToHash(v rt.Value) (hash.Hash, bool)

ValueToHash turns a lua value to a hash.Hash, if possible.

Types

This section is empty.

Jump to

Keyboard shortcuts

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