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

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

View file

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

View file

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

View file

@ -19,9 +19,9 @@ import (
"golang.org/x/crypto/openpgp/packet"
xrsa "golang.org/x/crypto/rsa"
armorUtils "github.com/ProtonMail/go-pm-crypto/armor"
"github.com/ProtonMail/go-pm-crypto/constants"
"github.com/ProtonMail/go-pm-crypto/models"
armorUtils "github.com/ProtonMail/gopenpgp/armor"
"github.com/ProtonMail/gopenpgp/constants"
"github.com/ProtonMail/gopenpgp/models"
)
// 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 {
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

View file

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

View file

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

View file

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

View file

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

View file

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