refactor: Use explicit reader/writer instead of filepath for drive

This commit is contained in:
Felix Pojtinger
2021-12-13 00:26:30 +01:00
parent 734df25820
commit 58b407cd4f
34 changed files with 506 additions and 340 deletions
-5
View File
@@ -1,5 +0,0 @@
package utility
type PasswordConfig struct {
Password string
}
+1 -1
View File
@@ -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)