gocipher

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: MIT Imports: 1 Imported by: 1

README

gocipher

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 GoCipher

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

func New

func New(rangez, seed int64) *GoCipher

func (*GoCipher) F

func (gocipher *GoCipher) F(j, r, seed int64) int64

Inner permutation function

func (*GoCipher) Fe

func (gocipher *GoCipher) Fe(r, a, b, m, seed int64) int64

Outer feistal construction

func (*GoCipher) Shuffle

func (gocipher *GoCipher) Shuffle(m int64) int64

func (*GoCipher) UnShuffle

func (gocipher *GoCipher) UnShuffle(m int64) int64

func (*GoCipher) Unfe

func (gocipher *GoCipher) 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