gmsm

package
v1.3.28 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PKCS7Padding

func PKCS7Padding(ciphertext []byte, blockSize int) []byte

PKCSPadd填充算法

func PKCS7UnPadding

func PKCS7UnPadding(origData []byte) []byte

func SM4ECBBase64Decrypt

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

func SM4ECBBase64Encrypt

func SM4ECBBase64Encrypt(originalText string, key []byte) (string, error)

func SM4ECBDecrypt

func SM4ECBDecrypt(originalBytes, key []byte) ([]byte, error)

金融sm4解密ECB模式不填充,注意被加密数据必须为16个字节

func SM4ECBEncrypt

func SM4ECBEncrypt(originalBytes, key []byte) ([]byte, error)

金融sm4加密ECB模式不填充,注意被加密数据必须为16个字节

Types

This section is empty.

Jump to

Keyboard shortcuts

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