add back private key print with %q

This commit is contained in:
Sun Yimin 2023-12-15 17:47:32 +08:00 committed by GitHub
parent 515aa31259
commit 5740fe0e1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)