noekeon

package
v1.0.2065 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const BlockSize = 16

Variables

View Source
var RC = []uint32{
	0x00000080, 0x0000001b, 0x00000036, 0x0000006c,
	0x000000d8, 0x000000ab, 0x0000004d, 0x0000009a,
	0x0000002f, 0x0000005e, 0x000000bc, 0x00000063,
	0x000000c6, 0x00000097, 0x00000035, 0x0000006a,
	0x000000d4,
}

Functions

func GAMMA

func GAMMA(a, b, c, d *uint32)

func NewCipher

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

NewCipher creates and returns a new cipher.Block.

func PI1

func PI1(a, b, c, d *uint32)

func PI2

func PI2(a, b, c, d *uint32)

func ROLc

func ROLc(x uint32, n uint32) uint32

func RORc

func RORc(x uint32, n uint32) uint32

func THETA

func THETA(k []uint32, a, b, c, d *uint32)

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