crypto

package
v0.0.0-...-0659192 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sha1

func Sha1(entries ...[]byte) string

Sha1 computes a Minecraft protocol compatible SHA-1 hash, which is notable different from a standard implementation.

Based on https://gist.github.com/toqueteos/5372776

Types

type CFB8

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

func NewCFB8Decrypt

func NewCFB8Decrypt(c cipher.Block, iv []byte) *CFB8

func NewCFB8Encrypt

func NewCFB8Encrypt(c cipher.Block, iv []byte) *CFB8

func (*CFB8) XORKeyStream

func (cf *CFB8) XORKeyStream(dst, src []byte)

Jump to

Keyboard shortcuts

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