crypto

package
v0.0.0-...-0c3240e Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AESCBCDecrypt

func AESCBCDecrypt(cipherText, key, iv []byte) (plaintext []byte, err error)

func AESCTRDecrypt

func AESCTRDecrypt(cipherText string, keySpec, iv []byte) (decryptMsg string, err error)

func NewECBDecrypter

func NewECBDecrypter(b cipher.Block) cipher.BlockMode

NewECBDecrypter returns a BlockMode which decrypts in electronic code book mode, using the given Block.

func SM4Decrypt

func SM4Decrypt(cipherText string, key []byte) (plaintext string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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