started to implement the key generator

This commit is contained in:
didier.amyot committed 2014-07-29 11:45:23 -04:00
1 parent ad4510711e
commit 776c73b91c
7 files changed
+233 -2

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
package main
import (
"testing"
)
func TestCreateRSAKey(t *testing.T) {
kc := new(KeyGenerator)
if err := kc.createRSAKey(100); err != nil {
t.Error(err)
}
if kc.privateKey == nil {
t.Fail()
}
if kc.publicKey == nil {
t.Fail()
}
}