From 71552d74f1649aa1415480a86c8d7b9b88b79a09 Mon Sep 17 00:00:00 2001 From: Owen Avery <7397652+powerboat9@users.noreply.github.com> Date: Fri, 31 May 2024 22:08:23 -0400 Subject: [PATCH] Make maskS from x25519c.lua local --- ccryptolib/x25519c.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ccryptolib/x25519c.lua b/ccryptolib/x25519c.lua index 391d1f3..3c4a653 100644 --- a/ccryptolib/x25519c.lua +++ b/ccryptolib/x25519c.lua @@ -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))