Documentation ¶
Index ¶
- Variables
- func CheckCBCPadding(cipherBytes []byte, key []byte, iv []byte) bool
- func DecryptCBC(cipherBytes []byte, key []byte, iv []byte, size int) ([]byte, error)
- func DecryptECB(cipherBytes []byte, key []byte, size int) ([]byte, error)
- func EncryptCBC(plainBytes []byte, key []byte, iv []byte, size int) []byte
- func EncryptECB(plainBytes []byte, key []byte, size int) []byte
- func EncryptionOracle(plainBytes []byte, ecb bool) []byte
- func MakeCBCEncryptionOracle(aesKey []byte, iv []byte, blockSize int) func(plainBytes []byte) []byte
- func MakeCBCPaddingOracle(aesKey []byte, num int) func() (cipherBytes []byte, iv []byte)
- func MakeECBEncryptionOracle(aesKey []byte, prefix []byte) func(plainBytes []byte) []byte
- func MakeStreamFunc(aesKey []byte, nonce uint64) func() []byte
Constants ¶
This section is empty.
Variables ¶
View Source
var CBCPaddingOracleCipherBytes = []string{
"MDAwMDAwTm93IHRoYXQgdGhlIHBhcnR5IGlzIGp1bXBpbmc=",
"MDAwMDAxV2l0aCB0aGUgYmFzcyBraWNrZWQgaW4gYW5kIHRoZSBWZWdhJ3MgYXJlIHB1bXBpbic=",
"MDAwMDAyUXVpY2sgdG8gdGhlIHBvaW50LCB0byB0aGUgcG9pbnQsIG5vIGZha2luZw==",
"MDAwMDAzQ29va2luZyBNQydzIGxpa2UgYSBwb3VuZCBvZiBiYWNvbg==",
"MDAwMDA0QnVybmluZyAnZW0sIGlmIHlvdSBhaW4ndCBxdWljayBhbmQgbmltYmxl",
"MDAwMDA1SSBnbyBjcmF6eSB3aGVuIEkgaGVhciBhIGN5bWJhbA==",
"MDAwMDA2QW5kIGEgaGlnaCBoYXQgd2l0aCBhIHNvdXBlZCB1cCB0ZW1wbw==",
"MDAwMDA3SSdtIG9uIGEgcm9sbCwgaXQncyB0aW1lIHRvIGdvIHNvbG8=",
"MDAwMDA4b2xsaW4nIGluIG15IGZpdmUgcG9pbnQgb2g=",
"MDAwMDA5aXRoIG15IHJhZy10b3AgZG93biBzbyBteSBoYWlyIGNhbiBibG93",
}
Functions ¶
func DecryptCBC ¶
func EncryptionOracle ¶
func MakeCBCEncryptionOracle ¶
func MakeCBCPaddingOracle ¶
func MakeECBEncryptionOracle ¶
func MakeStreamFunc ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.