diff options
author | rsiddharth <s@ricketyspace.net> | 2021-02-24 18:24:46 -0500 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2021-02-24 18:24:46 -0500 |
commit | 9d96d7e781710b306cf40828e35843656ddfe72e (patch) | |
tree | ae2705bb1b7eb1319f7d58f686c9bb988e196310 /lib/oracle.go | |
parent | 3d5ecc3132577308636bea80922c74505eec93f0 (diff) |
lib: randomBytes -> randomBytesWithLengthBetween
Diffstat (limited to 'lib/oracle.go')
-rw-r--r-- | lib/oracle.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/oracle.go b/lib/oracle.go index 4def7e2..29338ff 100644 --- a/lib/oracle.go +++ b/lib/oracle.go @@ -41,8 +41,8 @@ func OracleAESRandomEncrypt(in []byte) []byte { } // Add 5-10 bytes at the beginning and end of `in` - in = append(randomBytes(5, 10), in...) - in = append(in, randomBytes(5, 10)...) + in = append(randomBytesWithLengthBetween(5, 10), in...) + in = append(in, randomBytesWithLengthBetween(5, 10)...) // Randomly encrypt `in` with AES in ECB or CBC mode. m := RandomInt(0, 1) |