Help us shape the future of Go! Take the 2026 Go Developer Survey

blackrock

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: MIT Imports: 1 Imported by: 35

README

blackrock

blackrock cipher based on masscan

the cipher allows to visit all the elements of a finite space only once in a pseudo-random way

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlackRock

type BlackRock struct {
	Rounds int64
	Seed   int64
	Range  int64
	A      int64
	B      int64
}

func New

func New(rangez, seed int64) *BlackRock

func (*BlackRock) F

func (blackrock *BlackRock) F(j, r, seed int64) int64

Inner permutation function

func (*BlackRock) Fe

func (blackrock *BlackRock) Fe(r, a, b, m, seed int64) int64

Outer feistal construction

func (*BlackRock) Shuffle

func (blackrock *BlackRock) Shuffle(m int64) int64

func (*BlackRock) UnShuffle

func (blackrock *BlackRock) UnShuffle(m int64) int64

func (*BlackRock) Unfe

func (blackrock *BlackRock) Unfe(r, a, b, m, seed int64) int64

Outer reverse feistal construction

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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