clefia

package
v1.0.2061 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const BlockSize = 16

Variables

This section is empty.

Functions

func ByteXor

func ByteXor(dst []byte, a []byte, b []byte, bytelen int32)

func ClefiaConSet

func ClefiaConSet(con []byte, iv []byte, lk int32)

func ClefiaDecrypt

func ClefiaDecrypt(pt []byte, ct []byte, rk []byte, r int32)

func ClefiaDoubleSwap

func ClefiaDoubleSwap(lk []byte)

func ClefiaEncrypt

func ClefiaEncrypt(ct []byte, pt []byte, rk []byte, r int32)

func ClefiaF0Xor

func ClefiaF0Xor(dst []byte, src []byte, rk []byte)

func ClefiaF1Xor

func ClefiaF1Xor(dst []byte, src []byte, rk []byte)

func ClefiaGfn4

func ClefiaGfn4(y []byte, x []byte, rk []byte, r int32)

func ClefiaGfn4Inv

func ClefiaGfn4Inv(y []byte, x []byte, rk []byte, r int32)

func ClefiaGfn8

func ClefiaGfn8(y []byte, x []byte, rk []byte, r int32)

func ClefiaKeySet

func ClefiaKeySet(rk []byte, skey []byte, key_bitlen int32) int32

func ClefiaKeySet128

func ClefiaKeySet128(rk []byte, skey []byte)

func ClefiaKeySet192

func ClefiaKeySet192(rk []byte, skey []byte)

func ClefiaKeySet256

func ClefiaKeySet256(rk []byte, skey []byte)

func ClefiaMul2

func ClefiaMul2(x byte) byte

func ClefiaMul4

func ClefiaMul4(_x byte) byte

func ClefiaMul6

func ClefiaMul6(_x byte) byte

func ClefiaMul8

func ClefiaMul8(_x byte) byte

func ClefiaMulA

func ClefiaMulA(_x byte) byte

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