gost34112012

package
v0.0.0-...-0de9ac5 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2020 License: MIT, GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

GOST R 34.11-2012 hash function. RFC 6986.

Index

Constants

View Source
const (
	BlockSize = 64

	MarshaledName = "STREEBOG"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Hash

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

func New

func New(size int) *Hash

Create new hash object with specified size digest size.

func (*Hash) BlockSize

func (h *Hash) BlockSize() int

func (*Hash) MarshalBinary

func (h *Hash) MarshalBinary() (data []byte, err error)

func (*Hash) Reset

func (h *Hash) Reset()

func (*Hash) Size

func (h *Hash) Size() int

func (*Hash) Sum

func (h *Hash) Sum(in []byte) []byte

func (*Hash) UnmarshalBinary

func (h *Hash) UnmarshalBinary(data []byte) error

func (*Hash) Write

func (h *Hash) Write(data []byte) (int, error)

Jump to

Keyboard shortcuts

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