khazad

package
v1.0.4025 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	R          = 8
	KEYSIZE    = 128
	KEYSIZEB   = 16 // (KEYSIZE/8)
	BLOCKSIZE  = 64
	BLOCKSIZEB = 8 // (BLOCKSIZE/8)
)
View Source
const BlockSize = 8

Variables

View Source
var T0 = [256]CONST64{}/* 256 elements not displayed */
View Source
var T1 = [256]CONST64{}/* 256 elements not displayed */
View Source
var T2 = [256]CONST64{}/* 256 elements not displayed */
View Source
var T3 = [256]CONST64{}/* 256 elements not displayed */
View Source
var T4 = [256]CONST64{}/* 256 elements not displayed */
View Source
var T5 = [256]CONST64{}/* 256 elements not displayed */
View Source
var T6 = [256]CONST64{}/* 256 elements not displayed */
View Source
var T7 = [256]CONST64{}/* 256 elements not displayed */

Functions

func NewCipher

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

NewCipher creates and returns a new cipher.Block.

Types

type CONST64

type CONST64 = uint64

type KeySizeError

type KeySizeError int

func (KeySizeError) Error

func (k KeySizeError) Error() string

Jump to

Keyboard shortcuts

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