sm3

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2026 License: Apache-2.0 Imports: 2 Imported by: ? 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 sm3 实现国密 SM3 密码杂凑算法(GB/T 32905-2016)。

摘要长度 32 字节,分组长度 64 字节,实现 hash.Hash 接口,用法与 crypto/sha256 一致。

Index

Constants

View Source
const BlockSize = 64

BlockSize SM3 分组字节长度。

View Source
const Size = 32

Size SM3 摘要字节长度。

Variables

This section is empty.

Functions

func New

func New() hash.Hash

New 创建一个计算 SM3 摘要的 hash.Hash 实例。

func Sum

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

Sum 返回 data 的 SM3 摘要。

Types

This section is empty.

Jump to

Keyboard shortcuts

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