1
// Copyright 2012 The Go Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style
3
// license that can be found in the LICENSE file.
12
const expectedHex = "89161fde887b2b53de549af483940106ecc114d6982daa98256de23bdf77661a"
14
func TestBaseScalarMult(t *testing.T) {
20
for i := 0; i < 200; i++ {
21
ScalarBaseMult(out, in)
25
result := fmt.Sprintf("%x", in[:])
26
if result != expectedHex {
27
t.Errorf("incorrect result: got %s, want %s", result, expectedHex)