loki97

package
v1.0.3029 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	BlockSize = 16
)
View Source
const NUM_SUBKEYS = 48
View Source
const PERMUTATION_SIZE = 0x100

256

View Source
const (
	ROUNDS = 16
)
View Source
const S1_GEN = 0x2911 // 10513
View Source
const S1_SIZE = 0x2000 // 8192
View Source
const S2_GEN = 0xAA7 // 2727
View Source
const S2_SIZE = 0x800 // 2048

Variables

View Source
var DELTA = ULONG64{0x9E3779B9, 0x7F4A7C15}

Functions

func NewCipher

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

NewCipher creates and returns a new cipher.Block. data bytes use BigEndian, if is LittleEndian please change BigEndian bytes

func ULONG64ToBYTE

func ULONG64ToBYTE(I ULONG64) [8]byte

Types

type KeySizeError

type KeySizeError int

func (KeySizeError) Error

func (k KeySizeError) Error() string

type ULONG64

type ULONG64 struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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