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 Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type BlackRock func New(rangez, seed int64) *BlackRock func (blackrock *BlackRock) F(j, r, seed int64) int64 func (blackrock *BlackRock) Fe(r, a, b, m, seed int64) int64 func (blackrock *BlackRock) Shuffle(m int64) int64 func (blackrock *BlackRock) UnShuffle(m int64) int64 func (blackrock *BlackRock) Unfe(r, a, b, m, seed int64) int64 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 Source Files ¶ View all Source files blackrock.go Directories ¶ Show internal Expand all Path Synopsis example Click to show internal directories. Click to hide internal directories.