Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
MCJack123 committed Aug 1, 2024
1 parent 1c35712 commit bbf491c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 23 deletions.
8 changes: 4 additions & 4 deletions ccryptolib/random.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ end
local function initWithTiming()
local f
if KERNEL then
assert(os.time() ~= 0)

f = assert(load("local e=os.time return{" .. ("e(),"):rep(256) .. "}"))
else
assert(os.epoch("utc") ~= 0)

f = assert(load("local e=os.epoch return{" .. ("e'utc',"):rep(256) .. "}"))
else
assert(os.time() ~= 0)

f = assert(load("local e=os.time return{" .. ("e(),"):rep(256) .. "}"))
end

do -- Warmup.
Expand Down
2 changes: 1 addition & 1 deletion ccryptolib/x25519c.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ end
--- Masks a signature secret key.
--- @param sk string A random 32-byte Edwards25519 secret key.
--- @return string msk A masked secret key.
function maskS(sk)
local function maskS(sk)
expect(1, sk, "string")
lassert(#sk == 32, "secret key length must be 32", 2)
return mask(sha512.digest(sk):sub(1, 32))
Expand Down
18 changes: 0 additions & 18 deletions pack_archive.lua

This file was deleted.

0 comments on commit bbf491c

Please sign in to comment.