Minor build fixes
This commit is contained in:
parent
b3e6e67cac
commit
0bf075d49d
19 changed files with 40 additions and 39 deletions
|
|
@ -5,8 +5,8 @@ import (
|
|||
"encoding/hex"
|
||||
"errors"
|
||||
|
||||
"github.com/ProtonMail/go-pm-crypto/armor"
|
||||
"golang.org/x/crypto/openpgp"
|
||||
"proton/pmcrypto/armor"
|
||||
)
|
||||
|
||||
// GetFingerprint get a armored public key fingerprint
|
||||
|
|
|
|||
11
key/key.go
11
key/key.go
|
|
@ -1,12 +1,12 @@
|
|||
package key
|
||||
|
||||
import (
|
||||
"strings"
|
||||
"golang.org/x/crypto/openpgp"
|
||||
"fmt"
|
||||
"golang.org/x/crypto/openpgp/packet"
|
||||
"bytes"
|
||||
"proton/pmcrypto/armor"
|
||||
"fmt"
|
||||
"github.com/ProtonMail/go-pm-crypto/armor"
|
||||
"golang.org/x/crypto/openpgp"
|
||||
"golang.org/x/crypto/openpgp/packet"
|
||||
"strings"
|
||||
)
|
||||
|
||||
//CheckPassphrase check is private key passphrase ok
|
||||
|
|
@ -39,7 +39,6 @@ func CheckPassphrase(privateKey string, passphrase string) bool {
|
|||
return true
|
||||
}
|
||||
|
||||
|
||||
// PublicKey get a public key from a private key
|
||||
func PublicKey(privateKey string) (string, error) {
|
||||
privKeyReader := strings.NewReader(privateKey)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue