x11

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2019 License: GPL-3.0, ISC Imports: 12 Imported by: 0

README

GoDash - x11

Package x11 implements the hash and required functions in go.

Install

$ go get godash.org/libs/cb-crypto/x11

Usage

	package main

	import (
		"fmt"
		"godash.org/libs/cb-crypto/x11"
	)

	func main() {
		hs, out := x11.New(), [32]byte{}
		hs.Hash([]byte("DASH"), out[:])
		fmt.Printf("%x \n", out[:])
	}
Notes

Echo, Simd and Shavite do not have 100% test coverage, a full test on these requires the test to hash a blob of bytes that is several gigabytes large.

License

go-x11 is licensed under the copyfree ISC license.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hash

type Hash struct {
	// contains filtered or unexported fields
}

Hash contains the state objects required to perform the x11.Hash.

func New

func New() *Hash

New returns a new object to compute a x11 hash.

func (*Hash) Hash

func (ref *Hash) Hash(src []byte, dst []byte, order []byte)

Hash computes the hash from the src bytes and stores the result in dst.

func (*Hash) Hash1

func (ref *Hash) Hash1(src []byte, dst []byte, order [11]byte)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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