Skip to content

Commit

Permalink
Merge pull request #3 from powerboat9/patch-1
Browse files Browse the repository at this point in the history
Make maskS from x25519c.lua local
  • Loading branch information
migeyel authored Jun 1, 2024
2 parents d1efd74 + 71552d7 commit 58cff5b
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 58cff5b

Please sign in to comment.