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/c10.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'challenge/c10.go') 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)) } -- cgit v1.2.3