summaryrefslogtreecommitdiffstats
path: root/challenge/c16.go
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2021-02-11 23:00:49 -0500
committerrsiddharth <s@ricketyspace.net>2021-02-11 23:00:49 -0500
commitaaabeb704f200023aa544d70eaca9f363e8da975 (patch)
tree005886d6c8dc5b04160e5eec7fd561ad0d7bdd86 /challenge/c16.go
parent99a4f2f4e29e7963977ba16bf3aba3463a1c61d1 (diff)
lib: update Pkcs7PaddingUndo, AESDecryptCBC
Add error as the second return value to Pkcs7PaddingUndo and AESDecryptCBC.
Diffstat (limited to 'challenge/c16.go')
-rw-r--r--challenge/c16.go2
1 files changed, 1 insertions, 1 deletions
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