package igeimport// DecryptAES256Blocks decrypts src using AES-256 in IGE mode and writes the// result to dst. It uses an architecture-specific implementation when one is// available and otherwise falls back to crypto/aes and DecryptBlocks.//// The key must be exactly 32 bytes. The IV must contain two AES blocks. Src// must contain whole AES blocks and dst must be at least as long as src. Dst// and src must not overlap.func (, , , []byte) {iflen() != 32 {panic(aes.KeySizeError(len())) }iflen() != aes.BlockSize*2 {panic(ErrInvalidIV) }iflen()%aes.BlockSize != 0 {panic("src not full blocks") }iflen() < len() {panic("len(dst) < len(src)") }ifdecryptAES256BlocksHardware(, , , ) {return } , := aes.NewCipher()if != nil {panic() }DecryptBlocks(, , , )}
The pages are generated with Goldsv0.8.4. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.