checking in some various work

This commit is contained in:
brent s. 2020-09-12 01:25:44 -04:00
parent 1624740118
commit 5f5d77a2a6
Signed by: bts
GPG Key ID: 8C004C2F93481F6B

View File

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