Documentation
¶
Index ¶
- Constants
- Variables
- func Eaglesong(input []byte) (output []byte)
- func EaglesongFinalize(state []uint32, input []byte, output []byte, outputLength uint)
- func EaglesongPermutation(state []uint32)
- func EaglesongSponge(output []byte, outputLength uint, input []byte, inputLength uint)
- func EaglesongUpdate(state []uint32, input []byte)
- func New() hash.Hash
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 ¶
Eaglesong func is just a shortcut for EaglesongSponge, it's silly, no time saving on reusing
func EaglesongFinalize ¶
func EaglesongPermutation ¶
func EaglesongPermutation(state []uint32)
EaglesongPermutation is the base unit to improve the difficulty of the algorithm
func EaglesongSponge ¶
EaglesongSponge acts as the entry of eaglesong algorithm
func EaglesongUpdate ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.