-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed
Labels
DocumentationIssues describing a change to documentation.Issues describing a change to documentation.FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.help wanted
Milestone
Description
Lines 467 to 473 in 97711bf
// Exp sets z = x**y mod |m| (i.e. the sign of m is ignored), and returns z. | |
// If m == nil or m == 0, z = x**y unless y <= 0 then z = 1. If m > 0, y < 0, | |
// and x and n are not relatively prime, z is unchanged and nil is returned. | |
// | |
// Modular exponentiation of inputs of a particular size is not a | |
// cryptographically constant-time operation. | |
func (z *Int) Exp(x, y, m *Int) *Int { |
On line 469, it says ... x and n are not relatively prime, ...
but there's no n
in anywhere.
It should be m
instead.
Metadata
Metadata
Assignees
Labels
DocumentationIssues describing a change to documentation.Issues describing a change to documentation.FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.help wanted