set2

package
v0.0.0-...-af4e1f5 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: BSD-3-Clause Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AES128ECBOracle

func AES128ECBOracle(plainText []byte, key []byte) []byte

func AESECBOracle2

func AESECBOracle2(plainText []byte, key []byte, prefix []byte) []byte

func DecAES128CBC

func DecAES128CBC(ct []byte, iv []byte, key []byte) ([]byte, error)

func DecAES128ECB

func DecAES128ECB(ct []byte, key []byte) ([]byte, error)

func DetectAESMode

func DetectAESMode(oracle func([]byte) ([]byte, common.AESMode, error)) (common.AESMode, common.AESMode)

func EncAES128CBC

func EncAES128CBC(pt []byte, iv []byte, key []byte) ([]byte, error)

func EncAES128ECB

func EncAES128ECB(pt []byte, key []byte) ([]byte, error)

func EncOracle

func EncOracle(pt []byte) ([]byte, common.AESMode, error)

func PKCS7Padding

func PKCS7Padding(data []byte, lenExp int) ([]byte, error)

func PKCS7StripPadding

func PKCS7StripPadding(data []byte) []byte

Types

type KVMap

type KVMap struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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