diff options
author | rsiddharth <s@ricketyspace.net> | 2021-02-21 22:01:43 -0500 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2021-02-21 22:01:43 -0500 |
commit | 891caec6c71744966e6fd8c76b75c42ebb320e67 (patch) | |
tree | b1d531bbd1b74097649502e7b086cebc98efd600 /lib/oracle.go | |
parent | aaabeb704f200023aa544d70eaca9f363e8da975 (diff) |
lib: add OracleIV
Diffstat (limited to 'lib/oracle.go')
-rw-r--r-- | lib/oracle.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/oracle.go b/lib/oracle.go index 11f735a..005e392 100644 --- a/lib/oracle.go +++ b/lib/oracle.go @@ -14,6 +14,7 @@ dXN0IHRvIHNheSBoaQpEaWQgeW91IHN0b3A/IE5vLCBJIGp1c3QgZHJvdmUg YnkK` var OracleKey []byte = make([]byte, 16) +var OracleIV []byte = make([]byte, 16) var oracleRandom []byte = make([]byte, RandomInt(1, 4096)) func init() { @@ -22,6 +23,11 @@ func init() { panic(err) } + _, err = rand.Read(OracleIV) + if err != nil { + panic(err) + } + _, err = rand.Read(oracleRandom) if err != nil { panic(err) |