mirror of
https://github.com/go-i2p/go-i2p.git
synced 2025-07-06 14:33:13 -04:00
* rework dsa test
* add initial ed25519 (not done) * fix common.Certificate compile error * add more functions to crypto.SigningPrivateKey interface, not everyone implements them yet
This commit is contained in:
@ -22,7 +22,9 @@ func TestElg(t *testing.T) {
|
||||
if err == nil {
|
||||
dec, err := elgamalDecrypt(k, emsg, true)
|
||||
if err == nil {
|
||||
if !bytes.Equal(dec, msg) {
|
||||
if bytes.Equal(dec, msg) {
|
||||
t.Logf("%q == %q", dec, msg)
|
||||
} else {
|
||||
t.Logf("%q != %q", dec, msg)
|
||||
t.Fail()
|
||||
}
|
||||
|
Reference in New Issue
Block a user