whirl

package module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: MIT Imports: 1 Imported by: 3

README

zr_whirl - Zircon-Go Library - Whirlpool Hash package

Go Report Card

This package implements the Whirlpool hash, which I translated from the reference C implementation.

https://en.wikipedia.org/wiki/Whirlpool_(cryptography)

Documentation

Overview

Package whirl implements the Whirlpool hashing algorithm.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashOfBytes

func HashOfBytes(data []byte, salt []byte) []byte

HashOfBytes returns the Whirlpool hash of a byte slice. It also requires a 'salt' argument.

func HashOfString

func HashOfString(s string, salt []byte) []byte

HashOfString returns the Whirlpool hash of a string. It also requires a 'salt' argument.

func Sum512

func Sum512(data []byte) [cDigestBytes]byte

Sum512 _ _

Types

type Hash

type Hash struct {
	// contains filtered or unexported fields

} //                                                                        Hash

Hash _ _

func New

func New() Hash

New initialize the hashing state. (Same as the original implementation's NESSIEinit() function.)

func (*Hash) Write

func (ob *Hash) Write(data []byte) (n int, err error)

Write _ _

Jump to

Keyboard shortcuts

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