sha512half

package
v0.0.0-...-251bbda Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2020 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package sha512half implements the sha512 hash but returning only the first half of the sum as used by Ripple.

Index

Constants

View Source
const (
	BlockSize = sha512.BlockSize
	Size      = sha512.Size / 2
)

Variables

This section is empty.

Functions

func New

func New() hash.Hash

New returns a new hash.Hash computing the half of the SHA512 checksum.

func Sum256

func Sum256(data []byte) (sum512half [Size]byte)

Sum256 returns the first half of the SHA512 checksum of the data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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