LGTM=bradfitz R=rsc, bradfitz CC=golang-codereviews https://golang.org/cl/167190043
@@ -8,11 +8,11 @@ package bcrypt
// The code is a port of Provos and Mazières's C implementation.
import (
- "code.google.com/p/go.crypto/blowfish"
"crypto/rand"
"crypto/subtle"
"errors"
"fmt"
+ "golang.org/x/crypto/blowfish"
"io"
"strconv"
)
@@ -6,10 +6,10 @@ package hkdf_test
"bytes"
- "code.google.com/p/go.crypto/hkdf"
"crypto/sha256"
+ "golang.org/x/crypto/hkdf"
@@ -18,9 +18,9 @@ This package is interoperable with NaCl: http://nacl.cr.yp.to/box.html.
package box
- "code.google.com/p/go.crypto/curve25519"
- "code.google.com/p/go.crypto/nacl/secretbox"
- "code.google.com/p/go.crypto/salsa20/salsa"
+ "golang.org/x/crypto/curve25519"
+ "golang.org/x/crypto/nacl/secretbox"
+ "golang.org/x/crypto/salsa20/salsa"
@@ -10,7 +10,7 @@ import (
"encoding/hex"
"testing"
func TestSealOpen(t *testing.T) {
@@ -18,8 +18,8 @@ This package is interoperable with NaCl: http://nacl.cr.yp.to/secretbox.html.
package secretbox
- "code.google.com/p/go.crypto/poly1305"
+ "golang.org/x/crypto/poly1305"
// Overhead is the number of bytes of overhead when boxing a message.
@@ -9,8 +9,8 @@ package armor
"bufio"
- "code.google.com/p/go.crypto/openpgp/errors"
"encoding/base64"
+ "golang.org/x/crypto/openpgp/errors"
@@ -18,9 +18,9 @@ import (
"net/textproto"
- "code.google.com/p/go.crypto/openpgp/armor"
- "code.google.com/p/go.crypto/openpgp/packet"
+ "golang.org/x/crypto/openpgp/armor"
+ "golang.org/x/crypto/openpgp/packet"
// A Block represents a clearsigned message. A signature on a Block can
@@ -6,7 +6,7 @@ package clearsign
- "code.google.com/p/go.crypto/openpgp"
+ "golang.org/x/crypto/openpgp"
@@ -5,10 +5,10 @@
package openpgp
"crypto/rsa"
"time"
@@ -4,7 +4,7 @@ import (
func TestKeyExpiry(t *testing.T) {
package packet
"compress/bzip2"
"compress/flate"
"compress/zlib"
- "code.google.com/p/go.crypto/openpgp/elgamal"
"encoding/binary"
+ "golang.org/x/crypto/openpgp/elgamal"
"math/big"
- "code.google.com/p/go.crypto/openpgp/s2k"
"crypto"
+ "golang.org/x/crypto/openpgp/s2k"
@@ -6,7 +6,7 @@ package packet
"io/ioutil"
@@ -8,11 +8,11 @@ package packet
- "code.google.com/p/go.crypto/cast5"
"crypto/aes"
"crypto/cipher"
"crypto/des"
+ "golang.org/x/crypto/cast5"
@@ -6,9 +6,9 @@ package packet
@@ -6,13 +6,13 @@ package packet
"crypto/dsa"
"crypto/sha1"
@@ -6,8 +6,6 @@ package packet
"crypto/ecdsa"
@@ -18,6 +16,8 @@ import (
_ "crypto/sha512"
"hash"
@@ -16,7 +16,7 @@ import (
// PublicKeyV3 represents older, version 3 public keys. These keys are less secure and
@@ -5,7 +5,7 @@
@@ -5,12 +5,12 @@
@@ -12,8 +12,8 @@ import (
// SignatureV3 represents older version 3 signatures. These signatures are less secure
@@ -12,7 +12,7 @@ import (
func TestSignatureV3Read(t *testing.T) {
@@ -10,8 +10,8 @@ import (
// This is the largest session key that we'll support. Since no 512-bit cipher
@@ -6,11 +6,11 @@
_ "crypto/sha256"
@@ -6,9 +6,9 @@ package openpgp
"strings"
// Config collects configuration parameters for s2k key-stretching
@@ -15,7 +15,7 @@ import (
- _ "code.google.com/p/go.crypto/ripemd160"
+ _ "golang.org/x/crypto/ripemd160"
var saltedTests = []struct {
@@ -5,11 +5,11 @@
@@ -24,7 +24,7 @@ package salsa20
// TODO(agl): implement XORKeyStream12 and XORKeyStream8 - the reduced round variants of Salsa20.
// XORKeyStream crypts bytes from in to out using the given key and nonce. In
@@ -11,7 +11,7 @@ import (
- "code.google.com/p/go.crypto/pbkdf2"
+ "golang.org/x/crypto/pbkdf2"
const maxInt = int(^uint(0) >> 1)
@@ -24,7 +24,7 @@ import (
"sync"
- "code.google.com/p/go.crypto/ssh"
+ "golang.org/x/crypto/ssh"
// Agent represents the capabilities of an ssh-agent.
// startAgent executes ssh-agent, and returns a Agent interface to it.
"net"
// RequestAgentForwarding sets up agent forwarding for the session.
type privKey struct {
"log"
// Server wraps an Agent and uses it to implement the agent side of
@@ -7,7 +7,7 @@ package agent
func TestServer(t *testing.T) {
- "code.google.com/p/go.crypto/ssh/testdata"
+ "golang.org/x/crypto/ssh/testdata"
var (
"net/http"
- "code.google.com/p/go.crypto/ssh/terminal"
+ "golang.org/x/crypto/ssh/terminal"
func ExampleNewServerConn() {
@@ -17,7 +17,7 @@ import (
func rawKey(pub PublicKey) interface{} {
@@ -14,7 +14,7 @@ import (
"math/rand"
type serverType func(Channel, <-chan *Request, *testing.T)
- "code.google.com/p/go.crypto/ssh/agent"
+ "golang.org/x/crypto/ssh/agent"
func TestAgentForward(t *testing.T) {
func TestCertLogin(t *testing.T) {
@@ -10,8 +10,8 @@ package test
@@ -21,8 +21,8 @@ import (
"text/template"
const sshd_config = `