cryptocycle

package
v0.0.0-...-dfc2b99 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: ISC Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CryptoCycle

func CryptoCycle(s *State)

func Final

func Final(s *State)

Final will hash the whole buffer and put the result at the beginning

func GetItemNo

func GetItemNo(state *State) uint64

func Init

func Init(s *State, seed []byte, nonce uint64)

func Smul

func Smul(s *State)

Smul does a scalar mult cycle

func Update

func Update(state *State, item []byte, contentBlock []byte, randHashCycles int, progBuf *Context) bool

Types

type Context

type Context struct {
	Progbuf [2048]uint32
}

type State

type State struct {
	Bytes [2048]byte
}

func (*State) Data

func (s *State) Data() []byte

func (*State) GetAddLen

func (s *State) GetAddLen() byte

func (*State) GetAdditionalZeros

func (s *State) GetAdditionalZeros() byte

func (*State) GetBitRange

func (s *State) GetBitRange(offset, width byte) byte

func (*State) GetLength

func (s *State) GetLength() byte

func (*State) GetTrailingZeros

func (s *State) GetTrailingZeros() byte

func (*State) GetVersion

func (s *State) GetVersion() byte

func (*State) IsDecrypt

func (s *State) IsDecrypt() bool

func (*State) IsFailed

func (s *State) IsFailed() bool

func (*State) Key

func (s *State) Key() []byte

func (*State) MakeFuzzable

func (s *State) MakeFuzzable()

func (*State) Nonce

func (s *State) Nonce() []byte

func (*State) Poly

func (s *State) Poly() []byte

func (*State) SetAddLen

func (s *State) SetAddLen(v byte)

func (*State) SetAdditionalZeros

func (s *State) SetAdditionalZeros(v byte)

func (*State) SetBitRange

func (s *State) SetBitRange(offset, width, _v byte)

func (*State) SetDecrypt

func (s *State) SetDecrypt(v bool)

func (*State) SetFailed

func (s *State) SetFailed(v bool)

func (*State) SetLength

func (s *State) SetLength(v byte)

func (*State) SetTrailingZeros

func (s *State) SetTrailingZeros(v byte)

func (*State) SetTruncated

func (s *State) SetTruncated(v bool)

func (*State) SetVersion

func (s *State) SetVersion(v byte)

Jump to

Keyboard shortcuts

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