diff options
author | rsiddharth <s@ricketyspace.net> | 2021-02-11 23:00:49 -0500 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2021-02-11 23:00:49 -0500 |
commit | aaabeb704f200023aa544d70eaca9f363e8da975 (patch) | |
tree | 005886d6c8dc5b04160e5eec7fd561ad0d7bdd86 /challenge/c16.go | |
parent | 99a4f2f4e29e7963977ba16bf3aba3463a1c61d1 (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.go | 2 |
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 |