mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-27 04:36:19 +08:00
add back private key print with %q
This commit is contained in:
parent
515aa31259
commit
5740fe0e1c
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user