From 3d5ecc3132577308636bea80922c74505eec93f0 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Wed, 24 Feb 2021 18:23:17 -0500 Subject: lib: RandomKey -> RandomBytes --- challenge/c17.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'challenge') diff --git a/challenge/c17.go b/challenge/c17.go index 78c949c..2ebc583 100644 --- a/challenge/c17.go +++ b/challenge/c17.go @@ -11,7 +11,7 @@ import ( // Cryptopals #17 - CBC padding oracle attack func C17() { - key, err := lib.RandomKey(16) + key, err := lib.RandomBytes(16) if err != nil { fmt.Printf("key generation: error: %v\n", err) } @@ -31,7 +31,7 @@ func C17() { r := lib.RandomInt(0, int64(len(cookies)-1)) p := lib.Base64ToBytes(cookies[r]) k := key - iv, err := lib.RandomKey(16) + iv, err := lib.RandomBytes(16) if err != nil { fmt.Printf("iv generation: error: %v\n", err) } -- cgit v1.2.3