shift

package module
v0.0.0-...-adb02bf Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const BlockSize = 32

Variables

View Source
var ErrKeySize = errors.New("shift: invalid key size")

Functions

func Crack

func Crack(ciphertext, crib []byte) (key []byte, err error)

func NewCipher

func NewCipher(key []byte) (cipher.Block, error)

func NewDecrypter

func NewDecrypter(block cipher.Block) cipher.BlockMode

func NewEncrypter

func NewEncrypter(block cipher.Block) cipher.BlockMode

func Pad

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

func Unpad

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

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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