anubis2

package
v1.0.4001 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MIN_N        = 4
	MAX_N        = 10
	MIN_ROUNDS   = 12 // (8 + MIN_N)
	MAX_ROUNDS   = 18 // (8 + MAX_N)
	MIN_KEYSIZEB = 16 // (4*MIN_N)
	MAX_KEYSIZEB = 40 // (4*MAX_N)
	BLOCKSIZE    = 128
	BLOCKSIZEB   = 16 // (BLOCKSIZE/8)
)
View Source
const BlockSize = 16

Variables

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

Functions

func NewCipher

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

NewCipher creates and returns a new cipher.Block.

Types

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