blackrock

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: MIT Imports: 1 Imported by: 37 modules, 35 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址