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 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址