Skip to content

Commit 7c7d82b

Browse files
authored
Merge pull request #151 from czdsdo/master
fix #149
2 parents 96b99bd + 3b13bbd commit 7c7d82b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sm2/sm2_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func TestSm2(t *testing.T) {
6767
t.Fatal(err)
6868
}
6969
signdata, _ := ioutil.ReadFile("TestResult")
70-
ok := priv.Verify(msg, signdata) // 密钥验证
70+
ok := priv.PublicKey.Verify(msg, signdata) // 密钥验证
7171
if ok != true {
7272
fmt.Printf("Verify error\n")
7373
} else {
@@ -96,7 +96,7 @@ func BenchmarkSM2(t *testing.B) {
9696
if err != nil {
9797
t.Fatal(err)
9898
}
99-
priv.Verify(msg, sign) // 密钥验证
99+
priv.PublicKey.Verify(msg, sign) // 密钥验证
100100
}
101101
}
102102

0 commit comments

Comments
 (0)