go.crypto: use golang.org/x/... import paths

LGTM=bradfitz
R=rsc, bradfitz
CC=golang-codereviews
https://golang.org/cl/167190043
This commit is contained in:
Andrew Gerrand
2014-11-10 08:50:25 +11:00
parent 1a85842c9e
commit a73c6bbfc5
49 changed files with 74 additions and 74 deletions
+1 -1
View File
@@ -9,8 +9,8 @@ package armor
import (
"bufio"
"bytes"
"code.google.com/p/go.crypto/openpgp/errors"
"encoding/base64"
"golang.org/x/crypto/openpgp/errors"
"io"
)
+3 -3
View File
@@ -18,9 +18,9 @@ import (
"net/textproto"
"strconv"
"code.google.com/p/go.crypto/openpgp/armor"
"code.google.com/p/go.crypto/openpgp/errors"
"code.google.com/p/go.crypto/openpgp/packet"
"golang.org/x/crypto/openpgp/armor"
"golang.org/x/crypto/openpgp/errors"
"golang.org/x/crypto/openpgp/packet"
)
// A Block represents a clearsigned message. A signature on a Block can
+1 -1
View File
@@ -6,7 +6,7 @@ package clearsign
import (
"bytes"
"code.google.com/p/go.crypto/openpgp"
"golang.org/x/crypto/openpgp"
"testing"
)
+3 -3
View File
@@ -5,10 +5,10 @@
package openpgp
import (
"code.google.com/p/go.crypto/openpgp/armor"
"code.google.com/p/go.crypto/openpgp/errors"
"code.google.com/p/go.crypto/openpgp/packet"
"crypto/rsa"
"golang.org/x/crypto/openpgp/armor"
"golang.org/x/crypto/openpgp/errors"
"golang.org/x/crypto/openpgp/packet"
"io"
"time"
)
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"testing"
"time"
"code.google.com/p/go.crypto/openpgp/packet"
"golang.org/x/crypto/openpgp/packet"
)
func TestKeyExpiry(t *testing.T) {
+1 -1
View File
@@ -5,10 +5,10 @@
package packet
import (
"code.google.com/p/go.crypto/openpgp/errors"
"compress/bzip2"
"compress/flate"
"compress/zlib"
"golang.org/x/crypto/openpgp/errors"
"io"
"strconv"
)
+2 -2
View File
@@ -5,10 +5,10 @@
package packet
import (
"code.google.com/p/go.crypto/openpgp/elgamal"
"code.google.com/p/go.crypto/openpgp/errors"
"crypto/rsa"
"encoding/binary"
"golang.org/x/crypto/openpgp/elgamal"
"golang.org/x/crypto/openpgp/errors"
"io"
"math/big"
"strconv"
+2 -2
View File
@@ -5,10 +5,10 @@
package packet
import (
"code.google.com/p/go.crypto/openpgp/errors"
"code.google.com/p/go.crypto/openpgp/s2k"
"crypto"
"encoding/binary"
"golang.org/x/crypto/openpgp/errors"
"golang.org/x/crypto/openpgp/s2k"
"io"
"strconv"
)
+1 -1
View File
@@ -6,7 +6,7 @@ package packet
import (
"bytes"
"code.google.com/p/go.crypto/openpgp/errors"
"golang.org/x/crypto/openpgp/errors"
"io"
"io/ioutil"
)
+2 -2
View File
@@ -8,11 +8,11 @@ package packet
import (
"bufio"
"code.google.com/p/go.crypto/cast5"
"code.google.com/p/go.crypto/openpgp/errors"
"crypto/aes"
"crypto/cipher"
"crypto/des"
"golang.org/x/crypto/cast5"
"golang.org/x/crypto/openpgp/errors"
"io"
"math/big"
)
+1 -1
View File
@@ -6,9 +6,9 @@ package packet
import (
"bytes"
"code.google.com/p/go.crypto/openpgp/errors"
"encoding/hex"
"fmt"
"golang.org/x/crypto/openpgp/errors"
"io"
"io/ioutil"
"testing"
+3 -3
View File
@@ -6,13 +6,13 @@ package packet
import (
"bytes"
"code.google.com/p/go.crypto/openpgp/elgamal"
"code.google.com/p/go.crypto/openpgp/errors"
"code.google.com/p/go.crypto/openpgp/s2k"
"crypto/cipher"
"crypto/dsa"
"crypto/rsa"
"crypto/sha1"
"golang.org/x/crypto/openpgp/elgamal"
"golang.org/x/crypto/openpgp/errors"
"golang.org/x/crypto/openpgp/s2k"
"io"
"io/ioutil"
"math/big"
+2 -2
View File
@@ -6,8 +6,6 @@ package packet
import (
"bytes"
"code.google.com/p/go.crypto/openpgp/elgamal"
"code.google.com/p/go.crypto/openpgp/errors"
"crypto"
"crypto/dsa"
"crypto/ecdsa"
@@ -18,6 +16,8 @@ import (
_ "crypto/sha512"
"encoding/binary"
"fmt"
"golang.org/x/crypto/openpgp/elgamal"
"golang.org/x/crypto/openpgp/errors"
"hash"
"io"
"math/big"
+1 -1
View File
@@ -16,7 +16,7 @@ import (
"strconv"
"time"
"code.google.com/p/go.crypto/openpgp/errors"
"golang.org/x/crypto/openpgp/errors"
)
// PublicKeyV3 represents older, version 3 public keys. These keys are less secure and
+1 -1
View File
@@ -5,7 +5,7 @@
package packet
import (
"code.google.com/p/go.crypto/openpgp/errors"
"golang.org/x/crypto/openpgp/errors"
"io"
)
+2 -2
View File
@@ -5,12 +5,12 @@
package packet
import (
"code.google.com/p/go.crypto/openpgp/errors"
"code.google.com/p/go.crypto/openpgp/s2k"
"crypto"
"crypto/dsa"
"crypto/rsa"
"encoding/binary"
"golang.org/x/crypto/openpgp/errors"
"golang.org/x/crypto/openpgp/s2k"
"hash"
"io"
"strconv"
+2 -2
View File
@@ -12,8 +12,8 @@ import (
"strconv"
"time"
"code.google.com/p/go.crypto/openpgp/errors"
"code.google.com/p/go.crypto/openpgp/s2k"
"golang.org/x/crypto/openpgp/errors"
"golang.org/x/crypto/openpgp/s2k"
)
// SignatureV3 represents older version 3 signatures. These signatures are less secure
+1 -1
View File
@@ -12,7 +12,7 @@ import (
"io/ioutil"
"testing"
"code.google.com/p/go.crypto/openpgp/armor"
"golang.org/x/crypto/openpgp/armor"
)
func TestSignatureV3Read(t *testing.T) {
+2 -2
View File
@@ -10,8 +10,8 @@ import (
"io"
"strconv"
"code.google.com/p/go.crypto/openpgp/errors"
"code.google.com/p/go.crypto/openpgp/s2k"
"golang.org/x/crypto/openpgp/errors"
"golang.org/x/crypto/openpgp/s2k"
)
// This is the largest session key that we'll support. Since no 512-bit cipher
+1 -1
View File
@@ -5,10 +5,10 @@
package packet
import (
"code.google.com/p/go.crypto/openpgp/errors"
"crypto/cipher"
"crypto/sha1"
"crypto/subtle"
"golang.org/x/crypto/openpgp/errors"
"hash"
"io"
"strconv"
@@ -6,9 +6,9 @@ package packet
import (
"bytes"
"code.google.com/p/go.crypto/openpgp/errors"
"crypto/sha1"
"encoding/hex"
"golang.org/x/crypto/openpgp/errors"
"io"
"io/ioutil"
"testing"
+3 -3
View File
@@ -6,11 +6,11 @@
package openpgp
import (
"code.google.com/p/go.crypto/openpgp/armor"
"code.google.com/p/go.crypto/openpgp/errors"
"code.google.com/p/go.crypto/openpgp/packet"
"crypto"
_ "crypto/sha256"
"golang.org/x/crypto/openpgp/armor"
"golang.org/x/crypto/openpgp/errors"
"golang.org/x/crypto/openpgp/packet"
"hash"
"io"
"strconv"
+1 -1
View File
@@ -6,9 +6,9 @@ package openpgp
import (
"bytes"
"code.google.com/p/go.crypto/openpgp/errors"
_ "crypto/sha512"
"encoding/hex"
"golang.org/x/crypto/openpgp/errors"
"io"
"io/ioutil"
"strings"
+1 -1
View File
@@ -12,7 +12,7 @@ import (
"io"
"strconv"
"code.google.com/p/go.crypto/openpgp/errors"
"golang.org/x/crypto/openpgp/errors"
)
// Config collects configuration parameters for s2k key-stretching
+1 -1
View File
@@ -15,7 +15,7 @@ import (
"encoding/hex"
"testing"
_ "code.google.com/p/go.crypto/ripemd160"
_ "golang.org/x/crypto/ripemd160"
)
var saltedTests = []struct {
+4 -4
View File
@@ -5,11 +5,11 @@
package openpgp
import (
"code.google.com/p/go.crypto/openpgp/armor"
"code.google.com/p/go.crypto/openpgp/errors"
"code.google.com/p/go.crypto/openpgp/packet"
"code.google.com/p/go.crypto/openpgp/s2k"
"crypto"
"golang.org/x/crypto/openpgp/armor"
"golang.org/x/crypto/openpgp/errors"
"golang.org/x/crypto/openpgp/packet"
"golang.org/x/crypto/openpgp/s2k"
"hash"
"io"
"strconv"