algos

package
Version: v0.0.0-...-808d020 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CharacterFrequency = createFrequencyArray()

Functions

func Chunk

func Chunk(input []byte, size int) [][]byte

func ComputeDistanceBetweenVectors

func ComputeDistanceBetweenVectors(v1 []float64, v2 []float64) (result float64)

func GenerateRandomBytes

func GenerateRandomBytes(count int) []byte

func GetByteFrequency

func GetByteFrequency(input []byte) []float64

func Hamming

func Hamming(b1 []byte, b2 []byte) int

func PKCSPad

func PKCSPad(input []byte, size int) []byte

func PKCSPadToBlockSize

func PKCSPadToBlockSize(input []byte, blockSize int) []byte

func RemovePKCSPad

func RemovePKCSPad(input []byte, size int) ([]byte, error)

func Transpose

func Transpose(blocks [][]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