sm4

package
v0.13.6 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package sm4 handle shangmi sm4 symmetric encryption algorithm

Index

Constants

View Source
const (
	INST_AES int = iota
	INST_SM4
)
View Source
const BlockSize = 16

BlockSize the sm4 block size in bytes.

Variables

This section is empty.

Functions

func NewCipher

func NewCipher(key []byte) (cipher.Block, error)

NewCipher creates and returns a new cipher.Block. The key argument should be the SM4 key,

Types

This section is empty.

Jump to

Keyboard shortcuts

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