tools

package
v1.18.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const HmacSHA1Len = 10

Variables

This section is empty.

Functions

func AppendRandBytes

func AppendRandBytes(b *bytes.Buffer, length int)

func HmacMD5

func HmacMD5(key, data []byte) []byte

func HmacSHA1

func HmacSHA1(key, data []byte) []byte

func MD5Sum

func MD5Sum(b []byte) []byte

func SHA1Sum

func SHA1Sum(b []byte) []byte

Types

type XorShift128Plus

type XorShift128Plus struct {
	// contains filtered or unexported fields
}

XorShift128Plus - a pseudorandom number generator

func (*XorShift128Plus) InitFromBin

func (r *XorShift128Plus) InitFromBin(bin []byte)

func (*XorShift128Plus) InitFromBinAndLength

func (r *XorShift128Plus) InitFromBinAndLength(bin []byte, length int)

func (*XorShift128Plus) Next

func (r *XorShift128Plus) Next() uint64

Jump to

Keyboard shortcuts

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