* 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:
Jeff Becker
2016-01-29 08:36:04 -05:00
parent 6fcab3b7dd
commit 5d043d79e7
7 changed files with 182 additions and 31 deletions

View File

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