mirror of
https://github.com/golang/go.git
synced 2025-05-05 23:53:05 +00:00
[dev.boringcrypto.go1.10] all: merge go1.10.8 into dev.boringcrypto.go1.10
Change-Id: Iba5a8ddb67cfd119cf05274be79b840862009b4d
This commit is contained in:
commit
4b76b996cb
@ -87,6 +87,13 @@ See the <a href="https://github.com/golang/go/issues?q=milestone%3AGo1.10.7+labe
|
|||||||
Go 1.10.7 milestone</a> on our issue tracker for details.
|
Go 1.10.7 milestone</a> on our issue tracker for details.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
go1.10.8 (released 2019/01/23) includes a security fix to the
|
||||||
|
<code>crypto/elliptic</code> package.
|
||||||
|
See the <a href="https://github.com/golang/go/issues?q=milestone%3AGo1.10.8+label%3ACherryPickApproved">Go
|
||||||
|
1.10.8 milestone</a> on our issue tracker for details.
|
||||||
|
</p>
|
||||||
|
|
||||||
<h2 id="go1.9">go1.9 (released 2017/08/24)</h2>
|
<h2 id="go1.9">go1.9 (released 2017/08/24)</h2>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
@ -210,8 +210,9 @@ func (curve *CurveParams) doubleJacobian(x, y, z *big.Int) (*big.Int, *big.Int,
|
|||||||
|
|
||||||
x3 := new(big.Int).Mul(alpha, alpha)
|
x3 := new(big.Int).Mul(alpha, alpha)
|
||||||
beta8 := new(big.Int).Lsh(beta, 3)
|
beta8 := new(big.Int).Lsh(beta, 3)
|
||||||
|
beta8.Mod(beta8, curve.P)
|
||||||
x3.Sub(x3, beta8)
|
x3.Sub(x3, beta8)
|
||||||
for x3.Sign() == -1 {
|
if x3.Sign() == -1 {
|
||||||
x3.Add(x3, curve.P)
|
x3.Add(x3, curve.P)
|
||||||
}
|
}
|
||||||
x3.Mod(x3, curve.P)
|
x3.Mod(x3, curve.P)
|
||||||
|
@ -184,11 +184,16 @@ func TestLookupGmailTXT(t *testing.T) {
|
|||||||
if len(txts) == 0 {
|
if len(txts) == 0 {
|
||||||
t.Error("got no record")
|
t.Error("got no record")
|
||||||
}
|
}
|
||||||
|
found := false
|
||||||
for _, txt := range txts {
|
for _, txt := range txts {
|
||||||
if !strings.Contains(txt, tt.txt) || (!strings.HasSuffix(txt, tt.host) && !strings.HasSuffix(txt, tt.host+".")) {
|
if strings.Contains(txt, tt.txt) && (strings.HasSuffix(txt, tt.host) || strings.HasSuffix(txt, tt.host+".")) {
|
||||||
t.Errorf("got %s; want a record containing %s, %s", txt, tt.txt, tt.host)
|
found = true
|
||||||
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if !found {
|
||||||
|
t.Errorf("got %v; want a record containing %s, %s", txts, tt.txt, tt.host)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user