sha512

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2016 License: BSD-3-Clause, Apache-2.0 Imports: 5 Imported by: 0 modules, 0 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.

Documentation

Overview

Package sha512 implements the SHA384 and SHA512 hash algorithms as defined in FIPS 180-2.

Index

Constants

View Source
const BlockSize = 128

The blocksize of SHA512 and SHA384 in bytes.

View Source
const Size = 64

The size of a SHA512 checksum in bytes.

View Source
const Size384 = 48

The size of a SHA384 checksum in bytes.

Variables

This section is empty.

Functions

func New

func New() hash.Hash

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

func New384

func New384() hash.Hash

New384 returns a new hash.Hash computing the SHA384 checksum.

func Sum384

func Sum384(data []byte) (sum384 [Size384]byte)

Sum384 returns the SHA384 checksum of the data.

func Sum512

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

Sum512 returns 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