Skip to content

Commit

Permalink
add back private key print with %q
Browse files Browse the repository at this point in the history
  • Loading branch information
emmansun authored Dec 15, 2023
1 parent 515aa31 commit 5740fe0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sm2/sm2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ func TestEqual(t *testing.T) {
t.Errorf("private.Public() is not Equal to public: %q", public)
}
if !private.Equal(private) {
t.Errorf("private key is not equal to itself")
t.Errorf("private key is not equal to itself: %q", private.PrivateKey)
}

otherPriv, _ := GenerateKey(rand.Reader)
Expand Down
2 changes: 1 addition & 1 deletion smx509/equal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func TestEqual(t *testing.T) {
t.Errorf("private.Public() is not Equal to public: %q", public)
}
if !private.Equal(private) {
t.Errorf("private key is not equal to itself")
t.Errorf("private key is not equal to itself: %q", private.PrivateKey)
}

enc, err := MarshalPKCS8PrivateKey(private)
Expand Down

0 comments on commit 5740fe0

Please sign in to comment.