diff options
Diffstat (limited to 'challenge')
-rw-r--r-- | challenge/c17.go | 4 |
1 files changed, 2 insertions, 2 deletions
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) } |