summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2020-11-23 22:03:30 -0500
committerrsiddharth <s@ricketyspace.net>2020-11-23 22:03:30 -0500
commit4ff5d61d98a260858d15bb63727c7bfe13bfe987 (patch)
tree45ac236d2faf1fe9894a9db550123b809b49484c
parent7ba0e472e588ff36422290f3a5a841faaf221c5e (diff)
lib: aes: fix AESDecrypt
-rw-r--r--lib/aes.go2
1 files changed, 1 insertions, 1 deletions
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