We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eec47d0 commit a041a75Copy full SHA for a041a75
src/crypto/elliptic/elliptic_test.go
@@ -364,8 +364,8 @@ func BenchmarkMarshalUnmarshal(b *testing.B) {
364
b.Run("Compressed", func(b *testing.B) {
365
b.ReportAllocs()
366
for i := 0; i < b.N; i++ {
367
- buf := Marshal(curve, x, y)
368
- xx, yy := Unmarshal(curve, buf)
+ buf := MarshalCompressed(curve, x, y)
+ xx, yy := UnmarshalCompressed(curve, buf)
369
if xx.Cmp(x) != 0 || yy.Cmp(y) != 0 {
370
b.Error("Unmarshal output different from Marshal input")
371
}
0 commit comments