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/c10.go | |
parent | 99a4f2f4e29e7963977ba16bf3aba3463a1c61d1 (diff) |
lib: update Pkcs7PaddingUndo, AESDecryptCBC
Add error as the second return value to Pkcs7PaddingUndo and
AESDecryptCBC.
Diffstat (limited to 'challenge/c10.go')
-rw-r--r-- | challenge/c10.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/challenge/c10.go b/challenge/c10.go index 18f2db2..0ed473b 100644 --- a/challenge/c10.go +++ b/challenge/c10.go @@ -97,11 +97,11 @@ func C10() { fmt.Printf("NIST SP 800-38A F.2.1 (has padding):\n%v\n", lib.PrettifyHexStr(lib.BytesToHexStr(cipher80038A))) - o := lib.AESDecryptCBC(cipher80038A, key80038A, iv80038A) + o, _ := lib.AESDecryptCBC(cipher80038A, key80038A, iv80038A) fmt.Printf("NIST SP 800-38A F.2.2:\n%v\n", lib.PrettifyHexStr(lib.BytesToHexStr(o))) - o = lib.AESDecryptCBC(cipher10, key10, iv10) + o, _ = lib.AESDecryptCBC(cipher10, key10, iv10) fmt.Printf("Cryptopals Ch. 10:\n%v", lib.BytesToStr(o)) } |