crypto

package
v1.6.29 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: BSD-2-Clause-Patent Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DEFAULT_HASH_ENGINE ...
	DEFAULT_HASH_ENGINE = "sha-256"

	// DEFAULT_HASH_LENGTH ...
	DEFAULT_HASH_LENGTH = 64

	// ECIES_ALGORITHM ...
	ECIES_ALGORITHM = "ecies"

	// RSA_ALGORITHM ...
	RSA_ALGORITHM = "rsa"
)

Variables

This section is empty.

Functions

func ExistsAlgorithm

func ExistsAlgorithm(name string) bool

ExistsAlgorithm ...

func GetKeyBytes

func GetKeyBytes(key string, algo string) (bytes []byte, err error)

GetKeyBytes returns the appropriate byte array for the passed key and algorithm name

func Hash

func Hash(input []byte, engine string) (h []byte, err error)

Hash hashes the passed byte array using SHA-256 hash algorithm (as of the latest version of the Crumbl™)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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