set2

package
v0.0.0-...-b103c14 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CBCDecrypt

func CBCDecrypt(data, key []byte) ([]byte, error)

func CBCEncrypt

func CBCEncrypt(data, key []byte) ([]byte, error)

func CBCEncryptRandom

func CBCEncryptRandom(data, key []byte) ([]byte, error)

func EncryptAES128ECB

func EncryptAES128ECB(data, key []byte) ([]byte, error)

func PKCS7

func PKCS7(data []byte, blockSize int) []byte

Types

type Cipher

type Cipher string
const (
	ECB Cipher = "ECB"
	CBC Cipher = "CBC"
)

func DetectCipher

func DetectCipher(blockbox []byte) Cipher

Jump to

Keyboard shortcuts

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