From aaabeb704f200023aa544d70eaca9f363e8da975 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Thu, 11 Feb 2021 23:00:49 -0500 Subject: lib: update Pkcs7PaddingUndo, AESDecryptCBC Add error as the second return value to Pkcs7PaddingUndo and AESDecryptCBC. --- challenge/c16.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'challenge/c16.go') diff --git a/challenge/c16.go b/challenge/c16.go index 534d9fb..155fbaa 100644 --- a/challenge/c16.go +++ b/challenge/c16.go @@ -60,7 +60,7 @@ func cbcBitFlipEncrypt(s string) []byte { } func cbcBitFlipDecryptHasAdmin(c []byte) bool { - b := lib.AESDecryptCBC(c, cbcBitFlipKey, cbcBitFlipIV) + b, _ := lib.AESDecryptCBC(c, cbcBitFlipKey, cbcBitFlipIV) s := lib.BytesToStr(b) // Convert to a map -- cgit v1.2.3