yespower

package module
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 7 Imported by: 2

README

yespower-go

Yespower crypto algorythm port from reference implementation to Go

  • not optimized *

Documentation

Index

Constants

View Source
const (
	PIter     = 1
	PwxSimple = 2
	PwxGather = 4

	// Yespower versions
	// TODO: Use an enum instead?
	YESPOWER_0_5 = "YESPOWER_0_5"
	YESPOWER_1_0 = "YESPOWER_1_0"

	// Version specific params
	Salsa20Rounds_0_5 = 8
	Salsa20Rounds_1_0 = 2
	PwxRounds_0_5     = 6
	PwxRounds_1_0     = 3
	SWidth_0_5        = 8
	SWidth_1_0        = 11

	// Derived values
	PwxBytes = PwxGather * PwxSimple * 8
	PwxWords = PwxBytes / 4
)

Variables

This section is empty.

Functions

func Yescrypt

func Yescrypt(in []byte, N, r int, persToken string) string

func Yespower

func Yespower(in []byte, N, r int, persToken string) string

func YespowerHash

func YespowerHash(input []byte) []byte

Types

type PwxformCtx

type PwxformCtx struct {
	Version       string
	Salsa20Rounds int
	PwxRounds     int

	S []uint32
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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