sm4

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pkcs5Padding

func Pkcs5Padding(src []byte, blockSize int) []byte

Pkcs5Padding pkcs5填充

func Pkcs5UnPadding

func Pkcs5UnPadding(src []byte) []byte

func Sm4Decrypt

func Sm4Decrypt(key []byte, cipherText string) ([]byte, error)

Sm4Decrypt sm4 解密

func Sm4Encrypt

func Sm4Encrypt(key []byte, plainText string) (string, error)

Sm4Encrypt sm4 加密

Types

This section is empty.

Jump to

Keyboard shortcuts

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