crypto

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: ISC Imports: 8 Imported by: 23

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(cipherBlock cipher.Block, ciphertext []byte) ([]byte, error)

Decrypt is a decrypt function todo: write test and documentation

func Encrypt

func Encrypt(cipherBlock cipher.Block, text []byte) ([]byte, error)

Encrypt is an encrypt function todo: write test and documentation

func Hash160

func Hash160(b []byte) []byte

Hash160 hashes with SHA256 and then hashes again with RIPEMD160.

func Ripemd160

func Ripemd160(b []byte) []byte

Ripemd160 hashes with RIPEMD160

func Sha256

func Sha256(b []byte) []byte

Sha256 calculates hash(b) and returns the resulting bytes.

func Sha256d

func Sha256d(b []byte) []byte

Sha256d calculates hash(hash(b)) and returns the resulting bytes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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