started to implement the key generator
This commit is contained in:
1 parent
ad4510711e
commit
776c73b91c
7 files changed
+233
-2
No files matched your search
+18
@@ -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()
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user