Skip to content

Commit 015c708

Browse files
committed
test: ensure the test path is taken
1 parent 64de55e commit 015c708

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

internal/generator/ecdsa/template/ecdsa.test.go.tmpl

+1
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ func TestNonMalleability(t *testing.T) {
111111
r.Add(r, frMod)
112112
buf := r.Bytes()
113113
copy(bsig[sizeFr:], buf[:])
114+
big.NewInt(1).FillBytes(bsig[:sizeFr])
114115

115116
var sig Signature
116117
_, err := sig.SetBytes(bsig)

internal/generator/edwards/eddsa/template/eddsa.test.go.tmpl

+1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ func TestNonMalleability(t *testing.T) {
7979
o.Add(&cp.Order, o)
8080
buf := o.Bytes()
8181
copy(bsig[sizeFr:], buf[:])
82+
big.NewInt(1).FillBytes(bsig[:sizeFr])
8283

8384
var sig Signature
8485
_, err := sig.SetBytes(bsig)

0 commit comments

Comments
 (0)