Rename package to gopenpgp

This commit is contained in:
Daniel Huigens 2019-05-13 14:07:18 +02:00
parent 7519408c0c
commit da2e0f77f0
14 changed files with 27 additions and 27 deletions

View file

@ -1,6 +1,5 @@
variables: variables:
# Please edit to your GitLab project REPO_NAME: github.com/ProtonMail/gopenpgp
REPO_NAME: github.com/ProtonMail/go-pm-crypto
before_script: before_script:
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'

View file

@ -2,7 +2,8 @@
## Download/Install ## Download/Install
Manually `git clone` the repository into `$GOPATH/src/github.com/ProtonMail/go-pm-crypto`. Run `go get -u github.com/ProtonMail/gopenpgp`, or manually `git clone` the
repository into `$GOPATH/src/github.com/ProtonMail/gopenpgp`.
This library is meant to be used together with https://github.com/ProtonMail/crypto. This library is meant to be used together with https://github.com/ProtonMail/crypto.

View file

@ -4,8 +4,8 @@ package armor
import ( import (
"bytes" "bytes"
"errors" "errors"
"github.com/ProtonMail/go-pm-crypto/constants" "github.com/ProtonMail/gopenpgp/constants"
"github.com/ProtonMail/go-pm-crypto/internal" "github.com/ProtonMail/gopenpgp/internal"
"golang.org/x/crypto/openpgp/armor" "golang.org/x/crypto/openpgp/armor"
"golang.org/x/crypto/openpgp/clearsign" "golang.org/x/crypto/openpgp/clearsign"
"io" "io"

View file

@ -10,7 +10,7 @@ mkdir -p $IOS_OUT
# CHECK="${1-0}" # CHECK="${1-0}"
# if [ ${CHECK} -eq "1" ]; then # if [ ${CHECK} -eq "1" ]; then
printf "\e[0;32mStart Building iOS framework .. Location: ${IOS_OUT} \033[0m\n\n" printf "\e[0;32mStart Building iOS framework .. Location: ${IOS_OUT} \033[0m\n\n"
PACKAGE_PATH=github.com/ProtonMail/go-pm-crypto PACKAGE_PATH=github.com/ProtonMail/gopenpgp
gomobile bind -target ios -o ${IOS_OUT}/Crypto.framework $PACKAGE_PATH/crypto $PACKAGE_PATH/armor $PACKAGE_PATH/constants $PACKAGE_PATH/key $PACKAGE_PATH/models gomobile bind -target ios -o ${IOS_OUT}/Crypto.framework $PACKAGE_PATH/crypto $PACKAGE_PATH/armor $PACKAGE_PATH/constants $PACKAGE_PATH/key $PACKAGE_PATH/models

View file

@ -8,9 +8,9 @@ import (
"runtime" "runtime"
"sync" "sync"
armorUtils "github.com/ProtonMail/go-pm-crypto/armor" armorUtils "github.com/ProtonMail/gopenpgp/armor"
"github.com/ProtonMail/go-pm-crypto/constants" "github.com/ProtonMail/gopenpgp/constants"
"github.com/ProtonMail/go-pm-crypto/models" "github.com/ProtonMail/gopenpgp/models"
"golang.org/x/crypto/openpgp" "golang.org/x/crypto/openpgp"
"golang.org/x/crypto/openpgp/packet" "golang.org/x/crypto/openpgp/packet"
) )

View file

@ -13,9 +13,9 @@ import (
"strings" "strings"
"time" "time"
"github.com/ProtonMail/go-pm-crypto/armor" "github.com/ProtonMail/gopenpgp/armor"
"github.com/ProtonMail/go-pm-crypto/constants" "github.com/ProtonMail/gopenpgp/constants"
"github.com/ProtonMail/go-pm-crypto/models" "github.com/ProtonMail/gopenpgp/models"
"golang.org/x/crypto/openpgp" "golang.org/x/crypto/openpgp"
"golang.org/x/crypto/openpgp/packet" "golang.org/x/crypto/openpgp/packet"

View file

@ -6,7 +6,7 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/ProtonMail/go-pm-crypto/constants" "github.com/ProtonMail/gopenpgp/constants"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View file

@ -19,9 +19,9 @@ import (
"golang.org/x/crypto/openpgp/packet" "golang.org/x/crypto/openpgp/packet"
xrsa "golang.org/x/crypto/rsa" xrsa "golang.org/x/crypto/rsa"
armorUtils "github.com/ProtonMail/go-pm-crypto/armor" armorUtils "github.com/ProtonMail/gopenpgp/armor"
"github.com/ProtonMail/go-pm-crypto/constants" "github.com/ProtonMail/gopenpgp/constants"
"github.com/ProtonMail/go-pm-crypto/models" "github.com/ProtonMail/gopenpgp/models"
) )
// A keypair contains a private key and a public key. // A keypair contains a private key and a public key.
@ -399,7 +399,7 @@ func (kr *KeyRing) Unlock(passphrase []byte) error {
} }
if len(keys) == 0 { if len(keys) == 0 {
return errors.New("go-pm-crypto: cannot unlock key ring, no private key available") return errors.New("gopenpgp: cannot unlock key ring, no private key available")
} }
var err error var err error

View file

@ -8,7 +8,7 @@ import (
"golang.org/x/crypto/openpgp/armor" "golang.org/x/crypto/openpgp/armor"
"github.com/ProtonMail/go-pm-crypto/constants" "github.com/ProtonMail/gopenpgp/constants"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View file

@ -14,10 +14,10 @@ import (
pgpErrors "golang.org/x/crypto/openpgp/errors" pgpErrors "golang.org/x/crypto/openpgp/errors"
"golang.org/x/crypto/openpgp/packet" "golang.org/x/crypto/openpgp/packet"
armorUtils "github.com/ProtonMail/go-pm-crypto/armor" armorUtils "github.com/ProtonMail/gopenpgp/armor"
"github.com/ProtonMail/go-pm-crypto/constants" "github.com/ProtonMail/gopenpgp/constants"
"github.com/ProtonMail/go-pm-crypto/internal" "github.com/ProtonMail/gopenpgp/internal"
"github.com/ProtonMail/go-pm-crypto/models" "github.com/ProtonMail/gopenpgp/models"
) )
// DecryptMessageStringKey decrypts encrypted message use private key (string) // DecryptMessageStringKey decrypts encrypted message use private key (string)

View file

@ -2,7 +2,7 @@ package crypto
import ( import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/ProtonMail/go-pm-crypto/internal" "github.com/ProtonMail/gopenpgp/internal"
"io/ioutil" "io/ioutil"
"testing" "testing"
) )

View file

@ -6,8 +6,8 @@ import (
"fmt" "fmt"
"io" "io"
"github.com/ProtonMail/go-pm-crypto/armor" "github.com/ProtonMail/gopenpgp/armor"
"github.com/ProtonMail/go-pm-crypto/constants" "github.com/ProtonMail/gopenpgp/constants"
"golang.org/x/crypto/openpgp" "golang.org/x/crypto/openpgp"
"golang.org/x/crypto/openpgp/packet" "golang.org/x/crypto/openpgp/packet"

View file

@ -7,7 +7,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/ProtonMail/go-pm-crypto/internal" "github.com/ProtonMail/gopenpgp/internal"
"golang.org/x/crypto/openpgp" "golang.org/x/crypto/openpgp"
errorsPGP "golang.org/x/crypto/openpgp/errors" errorsPGP "golang.org/x/crypto/openpgp/errors"

View file

@ -1,7 +1,7 @@
package internal package internal
import ( import (
"github.com/ProtonMail/go-pm-crypto/constants" "github.com/ProtonMail/gopenpgp/constants"
"regexp" "regexp"
) )