crypto

package
v0.0.0-...-2ef61a0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: MIT Imports: 12 Imported by: 1

Documentation

Overview

Package crypto collects common cryptographic constants.

Usage:

res, err := MD5([]byte("your data"), []byte("your prefix"))
if err != nil {
    // handle the error...
}
// ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BLAKE2b_256

func BLAKE2b_256(data, prefix []byte) (string, error)

BLAKE2b_256

func BLAKE2b_384

func BLAKE2b_384(data, prefix []byte) (string, error)

BLAKE2b_384

func BLAKE2b_512

func BLAKE2b_512(data, prefix []byte) (string, error)

BLAKE2b_512

func BLAKE2s_256

func BLAKE2s_256(data, prefix []byte) (string, error)

BLAKE2s_256

func MD4

func MD4(data, prefix []byte) (string, error)

MD4

func MD5

func MD5(data, prefix []byte) (string, error)

MD5

func MD5SHA1

func MD5SHA1(data, prefix []byte) (string, error)

MD5SHA1 -- no implementation; MD5+SHA1 used for TLS RSA

func RIPEMD160

func RIPEMD160(data, prefix []byte) (string, error)

RIPEMD160

func SHA1

func SHA1(data, prefix []byte) (string, error)

SHA1

func SHA224

func SHA224(data, prefix []byte) (string, error)

SHA224

func SHA256

func SHA256(data, prefix []byte) (string, error)

SHA256

func SHA384

func SHA384(data, prefix []byte) (string, error)

SHA384

func SHA3_224

func SHA3_224(data, prefix []byte) (string, error)

SHA3_224

func SHA3_256

func SHA3_256(data, prefix []byte) (string, error)

SHA3_256

func SHA3_384

func SHA3_384(data, prefix []byte) (string, error)

SHA3_384

func SHA3_512

func SHA3_512(data, prefix []byte) (string, error)

SHA3_512

func SHA512

func SHA512(data, prefix []byte) (string, error)

SHA512

func SHA512_224

func SHA512_224(data, prefix []byte) (string, error)

SHA512_224

func SHA512_256

func SHA512_256(data, prefix []byte) (string, error)

SHA512_256

Types

This section is empty.

Jump to

Keyboard shortcuts

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