diff --git a/ccryptolib/internal/curve25519.lua b/ccryptolib/internal/curve25519.lua index e8bffc5..1aee70d 100644 --- a/ccryptolib/internal/curve25519.lua +++ b/ccryptolib/internal/curve25519.lua @@ -172,7 +172,7 @@ local function prac(P, ruleset) -- Throw away small order points. if fp.eqz(A[2]) then return end - -- Now e = d = gcd(m, n) / 8. + -- Now e = d = gcd(m, n). -- Update A from [8]P to [8 * gcd(m, n)]P. A = ladder(A, ruleset[1]) diff --git a/ccryptolib/internal/fq.lua b/ccryptolib/internal/fq.lua index a9acc5d..2dac2be 100644 --- a/ccryptolib/internal/fq.lua +++ b/ccryptolib/internal/fq.lua @@ -1,14 +1,4 @@ --- Arithmetic on Curve25519's scalar field. --- --- :::note Internal Module --- This module is meant for internal use within the library. Its API is unstable --- and subject to change without major version bumps. --- ::: --- ---
--- --- @module[kind=internal] internal.fq --- local mp = require "ccryptolib.internal.mp" local util = require "ccryptolib.internal.util" diff --git a/ccryptolib/internal/mp.lua b/ccryptolib/internal/mp.lua index 96470c6..d86e557 100644 --- a/ccryptolib/internal/mp.lua +++ b/ccryptolib/internal/mp.lua @@ -1,14 +1,4 @@ --- Multi-precision arithmetic on 264-bit integers. --- --- :::note Internal Module --- This module is meant for internal use within the library. Its API is unstable --- and subject to change without major version bumps. --- ::: --- ---
--- --- @module[kind=internal] internal.mp --- local unpack = unpack or table.unpack diff --git a/ccryptolib/internal/packing.lua b/ccryptolib/internal/packing.lua index 49f383e..f5597d6 100644 --- a/ccryptolib/internal/packing.lua +++ b/ccryptolib/internal/packing.lua @@ -4,8 +4,6 @@ --- For performance reasons, **the generated functions do not check types, --- lengths, nor ranges**. You must ensure that the passed arguments are --- well-formed and respect the format string yourself. ---- ----
local fmt = string.format