sm3

package
v0.0.0-...-02f8a93 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: BSD-3-Clause, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const BlockSize = 64
View Source
const Size = 32

Variables

This section is empty.

Functions

func New

func New() hash.Hash

func SumSM3

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

SumSM3 is a convenience function

Types

type SM3

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

func (*SM3) BlockSize

func (sm3 *SM3) BlockSize() int

func (*SM3) Reset

func (sm3 *SM3) Reset()

func (*SM3) Size

func (sm3 *SM3) Size() int

func (*SM3) Sum

func (sm3 *SM3) Sum(in []byte) []byte

Sum just follows the GoLand standard library convention

func (*SM3) Write

func (sm3 *SM3) Write(data []byte) (n int, err error)

Write just follows the GoLand standard library convention

Jump to

Keyboard shortcuts

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