Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions p256/src/arithmetic/scalar/scalar32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ const MU: [Limb; 9] = [
/// The general algorithm is:
/// ```text
/// p = n = order of group
/// b = 2^64 = 64bit machine word
/// k = 4
/// b = 2^32 = 32bit machine word
/// k = 8
/// a \in [0, 2^512]
/// mu := floor(b^{2k} / p)
/// q1 := floor(a / b^{k - 1})
/// q2 := q1 * mu
/// q3 := <- floor(a / b^{k - 1})
/// q3 := floor(q2 / b^{k + 1})
/// r1 := a mod b^{k + 1}
/// r2 := q3 * m mod b^{k + 1}
/// r := r1 - r2
Expand Down
2 changes: 1 addition & 1 deletion p256/src/arithmetic/scalar/scalar64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const MU: [Limb; 5] = [
/// mu := floor(b^{2k} / p)
/// q1 := floor(a / b^{k - 1})
/// q2 := q1 * mu
/// q3 := <- floor(a / b^{k - 1})
/// q3 := floor(q2 / b^{k + 1})
/// r1 := a mod b^{k + 1}
/// r2 := q3 * m mod b^{k + 1}
/// r := r1 - r2
Expand Down