tools

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EVPBytesToKey

func EVPBytesToKey(password string, keyLen int) (key []byte)

func HmacMD5

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

func HmacSHA1

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

func IsLittleEndian

func IsLittleEndian() bool

func MD5Sum

func MD5Sum(d []byte) []byte

func SHA1Sum

func SHA1Sum(d []byte) []byte

Types

type Shift128plusContext

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

func (*Shift128plusContext) InitFromBin

func (ctx *Shift128plusContext) InitFromBin(bin []byte)

func (*Shift128plusContext) InitFromBinDatalen

func (ctx *Shift128plusContext) InitFromBinDatalen(bin []byte, datalen int)

func (*Shift128plusContext) Next

func (ctx *Shift128plusContext) Next() uint64

Jump to

Keyboard shortcuts

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