eaglesong

package module
v0.0.0-...-8279159 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2019 License: MIT Imports: 3 Imported by: 0

README

eaglesong

A Golang Library of Eaglesong Hash Function

Documentation

Index

Constants

View Source
const DELIMITER = 0x06
View Source
const NUM_ROUNDS = 43
View Source
const RATE = 256
View Source
const Size = 32

types

Variables

View Source
var COEFFICIENTS = [48]uint32{
	0, 2, 4, 0, 13, 22, 0, 4, 19, 0, 3, 14, 0, 27, 31, 0, 3, 8, 0, 17, 26, 0, 3, 12, 0, 18, 22, 0,
	12, 18, 0, 4, 7, 0, 4, 31, 0, 12, 27, 0, 7, 17, 0, 7, 8, 0, 1, 13,
}
View Source
var INJECTION_CONSTANTS = [688]uint32{}/* 688 elements not displayed */

Functions

func Eaglesong

func Eaglesong(input []byte) (output []byte)

Eaglesong func is just a shortcut for EaglesongSponge, it's silly, no time saving on reusing

func EaglesongFinalize

func EaglesongFinalize(state []uint32, input []byte, output []byte, outputLength uint)

func EaglesongPermutation

func EaglesongPermutation(state []uint32)

EaglesongPermutation is the base unit to improve the difficulty of the algorithm

func EaglesongSponge

func EaglesongSponge(output []byte, outputLength uint, input []byte, inputLength uint)

EaglesongSponge acts as the entry of eaglesong algorithm

func EaglesongUpdate

func EaglesongUpdate(state []uint32, input []byte)

func New

func New() hash.Hash

New returns a new hash.Hash computing the Eaglesong.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳