aes_attacks

package
v0.0.0-...-808d020 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesCBCPadding

func AesCBCPadding(oracle func() (cipherBytes []byte, iv []byte), checkPadding func(cipherBytes []byte, iv []byte) bool) ([]byte, error)

func DecryptProfile

func DecryptProfile(cipherProfile []byte) (*user, error)

func DetectBlockSize

func DetectBlockSize(oracle func(plainBytes []byte) []byte) int

func DetectECB

func DetectECB(inputs [][]byte) ecbCandidate

func DetectHiddenText

func DetectHiddenText(prefixLen int, hiddenTextLen int, paddingLen int, blockSize int, oracle func(plainBytes []byte) []byte) []byte

func DetectHiddenTextLength

func DetectHiddenTextLength(prefixLen int, paddingLen int, blockSize int, oracle func(plainBytes []byte) []byte) int

func DetectPaddingLength

func DetectPaddingLength(prefixLen int, blockSize int, oracle func(plainBytes []byte) []byte) int

func DetectPrefixLength

func DetectPrefixLength(blockSize int, oracle func(plainBytes []byte) []byte) int

func ECBCutAndPaste

func ECBCutAndPaste() []byte

func EditCBC

func EditCBC(blockSize int, editBytes []byte, oracle func(plainBytes []byte) []byte) []byte

func EncryptProfile

func EncryptProfile(profile string) []byte

func IsECB

func IsECB(cipherbytes []byte) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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