panama

package
v1.0.4012 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const NULL = 0
View Source
const ONES = 0xffffffff
View Source
const PAN_STAGES = 32
View Source
const PAN_STAGE_SIZE = 8
View Source
const PAN_STATE_SIZE = 17
View Source
const WORDLENGTH = 32

Variables

This section is empty.

Functions

func NewCipher

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

NewCipher creates and returns a new cipher.Stream. key bytes and src bytes is use BigEndian

func NewData

func NewData(n uint32) *panamaData

#define regs(i)

func ROTL32

func ROTL32(x, n uint32) uint32

Types

type IState

type IState interface {
	With(i uint32, word uint32)
	Get(i uint32) (word uint32)
}

type KeySizeError

type KeySizeError int

func (KeySizeError) Error

func (k KeySizeError) Error() string

type PAN_BUFFER

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

type PAN_STAGE

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

func (*PAN_STAGE) Get

func (this *PAN_STAGE) Get(i uint32) (word uint32)

func (*PAN_STAGE) With

func (this *PAN_STAGE) With(i uint32, word uint32)

type PAN_STATE

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

func (*PAN_STATE) Get

func (this *PAN_STATE) Get(i uint32) (word uint32)

func (*PAN_STATE) With

func (this *PAN_STATE) With(i uint32, word uint32)

Jump to

Keyboard shortcuts

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