Skip to content

Commit 53f62d9

Browse files
committed
Vendor the package.
1 parent 1351f93 commit 53f62d9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+110
-108
lines changed

README

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
**NOTE:** This is a fork/vendoring of http://github.com/golang/crypto
2+
13
This repository holds supplementary Go cryptography libraries.
24

35
To submit changes to this repository, see http://golang.org/doc/contribute.html.

bcrypt/bcrypt.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44

55
// Package bcrypt implements Provos and Mazières's bcrypt adaptive hashing
66
// algorithm. See http://www.usenix.org/event/usenix99/provos/provos.pdf
7-
package bcrypt // import "golang.org/x/crypto/bcrypt"
7+
package bcrypt // import "github.com/btcsuite/golangcrypto/bcrypt"
88

99
// The code is a port of Provos and Mazières's C implementation.
1010
import (
1111
"crypto/rand"
1212
"crypto/subtle"
1313
"errors"
1414
"fmt"
15-
"golang.org/x/crypto/blowfish"
15+
"github.com/btcsuite/golangcrypto/blowfish"
1616
"io"
1717
"strconv"
1818
)

blowfish/cipher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// license that can be found in the LICENSE file.
44

55
// Package blowfish implements Bruce Schneier's Blowfish encryption algorithm.
6-
package blowfish // import "golang.org/x/crypto/blowfish"
6+
package blowfish // import "github.com/btcsuite/golangcrypto/blowfish"
77

88
// The code is a port of Bruce Schneier's C implementation.
99
// See http://www.schneier.com/blowfish.html.

bn256/bn256.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// Barreto-Naehrig curve as described in
1515
// http://cryptojedi.org/papers/dclxvi-20100714.pdf. Its output is compatible
1616
// with the implementation described in that paper.
17-
package bn256 // import "golang.org/x/crypto/bn256"
17+
package bn256 // import "github.com/btcsuite/golangcrypto/bn256"
1818

1919
import (
2020
"crypto/rand"

cast5/cast5.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
// Package cast5 implements CAST5, as defined in RFC 2144. CAST5 is a common
66
// OpenPGP cipher.
7-
package cast5 // import "golang.org/x/crypto/cast5"
7+
package cast5 // import "github.com/btcsuite/golangcrypto/cast5"
88

99
import "errors"
1010

curve25519/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
// Package curve25519 provides an implementation of scalar multiplication on
66
// the elliptic curve known as curve25519. See http://cr.yp.to/ecdh.html
7-
package curve25519 // import "golang.org/x/crypto/curve25519"
7+
package curve25519 // import "github.com/btcsuite/golangcrypto/curve25519"
88

99
// basePoint is the x coordinate of the generator of the curve.
1010
var basePoint = [32]byte{9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}

hkdf/example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"crypto/rand"
1010
"crypto/sha256"
1111
"fmt"
12-
"golang.org/x/crypto/hkdf"
12+
"github.com/btcsuite/golangcrypto/hkdf"
1313
"io"
1414
)
1515

hkdf/hkdf.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// strong secret keys.
1111
//
1212
// RFC 5869: https://tools.ietf.org/html/rfc5869
13-
package hkdf // import "golang.org/x/crypto/hkdf"
13+
package hkdf // import "github.com/btcsuite/golangcrypto/hkdf"
1414

1515
import (
1616
"crypto/hmac"

md4/md4.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// license that can be found in the LICENSE file.
44

55
// Package md4 implements the MD4 hash algorithm as defined in RFC 1320.
6-
package md4 // import "golang.org/x/crypto/md4"
6+
package md4 // import "github.com/btcsuite/golangcrypto/md4"
77

88
import (
99
"crypto"

nacl/box/box.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ negligible risk of collision.
1515
1616
This package is interoperable with NaCl: http://nacl.cr.yp.to/box.html.
1717
*/
18-
package box // import "golang.org/x/crypto/nacl/box"
18+
package box // import "github.com/btcsuite/golangcrypto/nacl/box"
1919

2020
import (
21-
"golang.org/x/crypto/curve25519"
22-
"golang.org/x/crypto/nacl/secretbox"
23-
"golang.org/x/crypto/salsa20/salsa"
21+
"github.com/btcsuite/golangcrypto/curve25519"
22+
"github.com/btcsuite/golangcrypto/nacl/secretbox"
23+
"github.com/btcsuite/golangcrypto/salsa20/salsa"
2424
"io"
2525
)
2626

0 commit comments

Comments
 (0)