We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf5ad8e commit af2952aCopy full SHA for af2952a
src/math/big/int.go
@@ -22,6 +22,14 @@ import (
22
// an existing (or newly allocated) Int must be set to
23
// a new value using the Int.Set method; shallow copies
24
// of Ints are not supported and may lead to errors.
25
+//
26
+// Note that methods may leak the Int's value through timing side-channels.
27
+// Because of this and because of the scope and complexity of the
28
+// implementation, Int is not well-suited to implement cryptographic operations.
29
+// The standard library avoids exposing non-trivial Int methods to
30
+// attacker-controlled inputs and the determination of whether a bug in math/big
31
+// is considered a security vulnerability might depend on the impact on the
32
+// standard library.
33
type Int struct {
34
neg bool // sign
35
abs nat // absolute value of the integer
0 commit comments