binary

package
v0.0.0-...-324a32f Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPKCS7Pad

func AddPKCS7Pad(data []byte, blockSize int) []byte

func ECBRepeatedBlockCount

func ECBRepeatedBlockCount(ciphertext []byte, blockSize int) (count int, blocks int)

func Equals

func Equals(a, b []byte) bool

func HammingDistance

func HammingDistance(a []byte, b []byte) (dist int)

func NewPKCS7Reader

func NewPKCS7Reader(underlying io.Reader, blockSize int) io.Reader

func RemovePKCS7Pad

func RemovePKCS7Pad(data []byte, blockSize int) ([]byte, error)

func WeakRemovePKCS7Pad

func WeakRemovePKCS7Pad(data []byte) []byte

This method is used when leading bytes are extracted, as the extraction method cannot work correctly with padding, so its just an unsafe cleanup

Types

This section is empty.

Jump to

Keyboard shortcuts

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