From 5f5d77a2a652c7349382ad3cdb7174f9ef69f9d8 Mon Sep 17 00:00:00 2001 From: brent s Date: Sat, 12 Sep 2020 01:25:44 -0400 Subject: [PATCH] checking in some various work --- sshkeys/func.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sshkeys/func.go b/sshkeys/func.go index 3102e8b..8630dc2 100644 --- a/sshkeys/func.go +++ b/sshkeys/func.go @@ -2,15 +2,18 @@ package sshkeys import ( "errors" + + "r00t2.io/goutils/checks" ) -func genPrivKey(cipherAlgo string, kdf string, salt []byte, rounds uint32) ([]byte, error) { - +func genPrivKey(cipherAlgo string, kdf string, salt []byte, rounds uint32, passphrase string) ([]byte, error) { return nil, nil } func genPubKey(privKey *[]byte) ([]byte, error) { - + if *privKey == nil { + return nil, errors.New("must generate private key before public key") + } return nil, nil }