dep ensure -add "github.com/Yomiji/genrsa"
func TestKey(t *testing.T) {
privateKey, publicKey := genrsa.MakeKeys(testByteCount)
// do something with keys
}
func TestMakePrivatePublicFilePair(t *testing.T) {
privateFile,err := os.OpenFile("testPriv", os.O_CREATE | os.O_TRUNC | os.O_WRONLY, privPerm)
checkTheErr(err)
publicFile,err := os.OpenFile("testPub", os.O_CREATE | os.O_TRUNC | os.O_WRONLY, pubPerm)
checkTheErr(err)
genrsa.MakePrivatePublicFilePair(privateFile, publicFile, testByteCount)
privateFile.Close()
publicFile.Close()
// do something with files
}