refactor: Use explicit reader/writer instead of filepath for drive
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
package utility
|
||||
|
||||
type PasswordConfig struct {
|
||||
Password string
|
||||
}
|
||||
@@ -15,7 +15,7 @@ import (
|
||||
|
||||
func Keygen(
|
||||
pipes config.PipeConfig,
|
||||
password PasswordConfig,
|
||||
password config.PasswordConfig,
|
||||
) (privkey []byte, pubkey []byte, err error) {
|
||||
if pipes.Encryption != config.NoneKey {
|
||||
priv, pub, err := generateEncryptionKey(pipes.Encryption, password.Password)
|
||||
|
||||
Reference in New Issue
Block a user