sm3

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

* Copyright 2020 The openwallet Authors * This file is part of the openwallet library. * * The openwallet library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * The openwallet library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() hash.Hash

func Sm3Sum

func Sm3Sum(data []byte) []byte

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

func (*SM3) Write

func (sm3 *SM3) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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