From 4ff5d61d98a260858d15bb63727c7bfe13bfe987 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Mon, 23 Nov 2020 22:03:30 -0500 Subject: lib: aes: fix AESDecrypt --- lib/aes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/aes.go') diff --git a/lib/aes.go b/lib/aes.go index d8ccc95..6121f41 100644 --- a/lib/aes.go +++ b/lib/aes.go @@ -7,7 +7,7 @@ func AESDecrypt(cipher, key []byte) []byte { iter := len(cipher) / 16 // Decrypt 16 bytes at a time. - output := make([]byte, len(cipher)) + output := make([]byte, 0) for i := 0; i < iter; i++ { s := (i * 16) e := (i * 16) + 16 -- cgit v1.2.3