sm4

package
v0.0.0-...-532f4bb Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptCBC

func DecryptCBC(key []byte, in []byte) ([]byte, error)

func DecryptCFB

func DecryptCFB(key []byte, in []byte) ([]byte, error)

func DecryptECB

func DecryptECB(key []byte, in []byte) ([]byte, error)

func DecryptOFB

func DecryptOFB(key []byte, in []byte) ([]byte, error)

func DecryptSm4

func DecryptSm4(key, iv []byte, cipherText []byte) ([]byte, error)

func EncryptCBC

func EncryptCBC(key []byte, in []byte) ([]byte, error)

func EncryptCFB

func EncryptCFB(key []byte, in []byte) ([]byte, error)

func EncryptECB

func EncryptECB(key []byte, in []byte) ([]byte, error)

func EncryptOFB

func EncryptOFB(key []byte, in []byte) ([]byte, error)

func EncryptSm4

func EncryptSm4(key, iv []byte, plainText []byte) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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