crypto

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: AGPL-3.0 Imports: 11 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AESGCMDecrypt

func AESGCMDecrypt(data []byte, key []byte) ([]byte, error)

func AESGCMEncrypt

func AESGCMEncrypt(data []byte, key []byte) ([]byte, error)

func ComputeBlockSha1

func ComputeBlockSha1(r io.ReadSeeker, blockSize int) [][]byte

func ComputeMd5AndLength

func ComputeMd5AndLength(r io.ReadSeeker) ([]byte, uint32)

func ComputeMd5AndLengthWithLimit

func ComputeMd5AndLengthWithLimit(r io.ReadSeeker, limit int64) ([]byte, uint32)

func ComputeMd5AndSha1AndLength

func ComputeMd5AndSha1AndLength(r io.ReadSeeker) ([]byte, []byte, uint64)

func ComputeSha1AndLength

func ComputeSha1AndLength(r io.ReadSeeker) ([]byte, uint32)

func GetSha1Status

func GetSha1Status(h hash.Hash) []byte

func MD5Digest

func MD5Digest(v []byte) []byte

func RandU32

func RandU32() uint32

func SHA1Digest

func SHA1Digest(v []byte) []byte

func SHA256Digest

func SHA256Digest(v []byte) []byte

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