Skip to content

Commit 4b658d5

Browse files
committed
Init fork: change package name
1 parent bc19a97 commit 4b658d5

File tree

94 files changed

+157
-140
lines changed

Some content is hidden

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

94 files changed

+157
-140
lines changed

.gitpod.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# This configuration file was automatically generated by Gitpod.
2+
# Please adjust to your needs (see https://www.gitpod.io/docs/config-gitpod-file)
3+
# and commit this file to your remote git repository to share the goodness with others.
4+
5+
tasks:
6+
- init: go get && go build ./... && go test ./...
7+
command: go run
8+
9+

acme/autocert/autocert.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import (
3131
"sync"
3232
"time"
3333

34-
"golang.org/x/crypto/acme"
34+
"github.com/gitpod-io/golang-crypto/acme"
3535
"golang.org/x/net/idna"
3636
)
3737

acme/autocert/autocert_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ import (
2727
"testing"
2828
"time"
2929

30-
"golang.org/x/crypto/acme"
31-
"golang.org/x/crypto/acme/autocert/internal/acmetest"
30+
"github.com/gitpod-io/golang-crypto/acme"
31+
"github.com/gitpod-io/golang-crypto/acme/autocert/internal/acmetest"
3232
)
3333

3434
var (

acme/autocert/example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"log"
1010
"net/http"
1111

12-
"golang.org/x/crypto/acme/autocert"
12+
"github.com/gitpod-io/golang-crypto/acme/autocert"
1313
)
1414

1515
func ExampleNewListener() {

acme/autocert/internal/acmetest/ca.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import (
3434
"testing"
3535
"time"
3636

37-
"golang.org/x/crypto/acme"
37+
"github.com/gitpod-io/golang-crypto/acme"
3838
)
3939

4040
// CAServer is a simple test server which implements ACME spec bits needed for testing.

acme/autocert/renewal_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import (
1212
"testing"
1313
"time"
1414

15-
"golang.org/x/crypto/acme"
16-
"golang.org/x/crypto/acme/autocert/internal/acmetest"
15+
"github.com/gitpod-io/golang-crypto/acme"
16+
"github.com/gitpod-io/golang-crypto/acme/autocert/internal/acmetest"
1717
)
1818

1919
func TestRenewalNext(t *testing.T) {

acme/internal/acmeprobe/prober.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ import (
4545
"strings"
4646
"time"
4747

48-
"golang.org/x/crypto/acme"
48+
"github.com/gitpod-io/golang-crypto/acme"
4949
)
5050

5151
var (

argon2/argon2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import (
3838
"encoding/binary"
3939
"sync"
4040

41-
"golang.org/x/crypto/blake2b"
41+
"github.com/gitpod-io/golang-crypto/blake2b"
4242
)
4343

4444
// The Argon2 version implemented by this package.

argon2/blake2b.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"encoding/binary"
99
"hash"
1010

11-
"golang.org/x/crypto/blake2b"
11+
blake2b "github.com/gitpod-io/golang-crypto/blake2b"
1212
)
1313

1414
// blake2bHash computes an arbitrary long hash value of in

bcrypt/bcrypt.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
"io"
1616
"strconv"
1717

18-
"golang.org/x/crypto/blowfish"
18+
"github.com/gitpod-io/golang-crypto/blowfish"
1919
)
2020

2121
const (

chacha20/chacha_generic.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"errors"
1313
"math/bits"
1414

15-
"golang.org/x/crypto/internal/alias"
15+
"github.com/gitpod-io/golang-crypto/internal/alias"
1616
)
1717

1818
const (

chacha20poly1305/chacha20poly1305_amd64.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ package chacha20poly1305
1010
import (
1111
"encoding/binary"
1212

13-
"golang.org/x/crypto/internal/alias"
13+
"github.com/gitpod-io/golang-crypto/internal/alias"
1414
"golang.org/x/sys/cpu"
1515
)
1616

chacha20poly1305/chacha20poly1305_generic.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ package chacha20poly1305
77
import (
88
"encoding/binary"
99

10-
"golang.org/x/crypto/chacha20"
11-
"golang.org/x/crypto/internal/alias"
12-
"golang.org/x/crypto/internal/poly1305"
10+
"github.com/gitpod-io/golang-crypto/chacha20"
11+
"github.com/gitpod-io/golang-crypto/internal/alias"
12+
"github.com/gitpod-io/golang-crypto/internal/poly1305"
1313
)
1414

1515
func writeWithPadding(p *poly1305.MAC, b []byte) {

chacha20poly1305/xchacha20poly1305.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"crypto/cipher"
99
"errors"
1010

11-
"golang.org/x/crypto/chacha20"
11+
"github.com/gitpod-io/golang-crypto/chacha20"
1212
)
1313

1414
type xchacha20poly1305 struct {

cryptobyte/asn1.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"reflect"
1212
"time"
1313

14-
"golang.org/x/crypto/cryptobyte/asn1"
14+
"github.com/gitpod-io/golang-crypto/cryptobyte/asn1"
1515
)
1616

1717
// This file contains ASN.1-related methods for String and Builder.

cryptobyte/asn1_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"testing"
1313
"time"
1414

15-
"golang.org/x/crypto/cryptobyte/asn1"
15+
"github.com/gitpod-io/golang-crypto/cryptobyte/asn1"
1616
)
1717

1818
type readASN1Test struct {

cryptobyte/example_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"errors"
99
"fmt"
1010

11-
"golang.org/x/crypto/cryptobyte"
12-
"golang.org/x/crypto/cryptobyte/asn1"
11+
"github.com/gitpod-io/golang-crypto/cryptobyte"
12+
"github.com/gitpod-io/golang-crypto/cryptobyte/asn1"
1313
)
1414

1515
func ExampleString_lengthPrefixed() {

curve25519/curve25519.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"errors"
1313
"strconv"
1414

15-
"golang.org/x/crypto/curve25519/internal/field"
15+
"github.com/gitpod-io/golang-crypto/curve25519/internal/field"
1616
)
1717

1818
// ScalarMult sets dst to the product scalar * point.

curve25519/internal/field/_asm/fe_amd64_asm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414

1515
// Ensure "go mod tidy" doesn't remove the golang.org/x/crypto module
1616
// dependency, which is necessary to access the field.Element type.
17-
_ "golang.org/x/crypto/curve25519"
17+
_ "github.com/gitpod-io/golang-crypto/curve25519"
1818
)
1919

2020
//go:generate go run . -out ../fe_amd64.s -stubs ../fe_amd64.go -pkg field

ed25519/ed25519_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
ed25519std "crypto/ed25519"
99
"testing"
1010

11-
"golang.org/x/crypto/ed25519"
11+
"github.com/gitpod-io/golang-crypto/ed25519"
1212
)
1313

1414
func TestTypeAlias(t *testing.T) {

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module golang.org/x/crypto
1+
module github.com/gitpod-io/golang-crypto
22

33
go 1.17
44

hkdf/example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"fmt"
1212
"io"
1313

14-
"golang.org/x/crypto/hkdf"
14+
"github.com/gitpod-io/golang-crypto/hkdf"
1515
)
1616

1717
// Usage example that expands one master secret into three other

internal/wycheproof/aead_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"fmt"
1212
"testing"
1313

14-
"golang.org/x/crypto/chacha20poly1305"
14+
"github.com/gitpod-io/golang-crypto/chacha20poly1305"
1515
)
1616

1717
func TestAEAD(t *testing.T) {

internal/wycheproof/dsa_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"crypto/dsa"
99
"testing"
1010

11-
wdsa "golang.org/x/crypto/internal/wycheproof/internal/dsa"
11+
wdsa "github.com/gitpod-io/golang-crypto/internal/wycheproof/internal/dsa"
1212
)
1313

1414
func TestDsa(t *testing.T) {

internal/wycheproof/ecdh_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import (
1414
"fmt"
1515
"testing"
1616

17-
"golang.org/x/crypto/cryptobyte"
18-
casn1 "golang.org/x/crypto/cryptobyte/asn1"
17+
"github.com/gitpod-io/golang-crypto/cryptobyte"
18+
casn1 "github.com/gitpod-io/golang-crypto/cryptobyte/asn1"
1919
)
2020

2121
func TestECDH(t *testing.T) {

internal/wycheproof/eddsa_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ package wycheproof
1010
import (
1111
"testing"
1212

13-
"golang.org/x/crypto/ed25519"
13+
"github.com/gitpod-io/golang-crypto/ed25519"
1414
)
1515

1616
func TestEddsa(t *testing.T) {

internal/wycheproof/hkdf_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"io"
1010
"testing"
1111

12-
"golang.org/x/crypto/hkdf"
12+
"github.com/gitpod-io/golang-crypto/hkdf"
1313
)
1414

1515
func TestHkdf(t *testing.T) {

internal/wycheproof/internal/dsa/dsa.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
"crypto/dsa"
1111
"math/big"
1212

13-
"golang.org/x/crypto/cryptobyte"
14-
"golang.org/x/crypto/cryptobyte/asn1"
13+
"github.com/gitpod-io/golang-crypto/cryptobyte"
14+
"github.com/gitpod-io/golang-crypto/cryptobyte/asn1"
1515
)
1616

1717
// VerifyASN1 verifies the ASN1 encoded signature, sig, of hash using the

md4/example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"fmt"
99
"io"
1010

11-
"golang.org/x/crypto/md4"
11+
"github.com/gitpod-io/golang-crypto/md4"
1212
)
1313

1414
func ExampleNew() {

nacl/auth/example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"encoding/hex"
99
"fmt"
1010

11-
"golang.org/x/crypto/nacl/auth"
11+
"github.com/gitpod-io/golang-crypto/nacl/auth"
1212
)
1313

1414
func Example() {

nacl/box/box.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ import (
4141
cryptorand "crypto/rand"
4242
"io"
4343

44-
"golang.org/x/crypto/blake2b"
45-
"golang.org/x/crypto/curve25519"
46-
"golang.org/x/crypto/nacl/secretbox"
47-
"golang.org/x/crypto/salsa20/salsa"
44+
"github.com/gitpod-io/golang-crypto/blake2b"
45+
"github.com/gitpod-io/golang-crypto/curve25519"
46+
"github.com/gitpod-io/golang-crypto/nacl/secretbox"
47+
"github.com/gitpod-io/golang-crypto/salsa20/salsa"
4848
)
4949

5050
const (

nacl/box/box_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"encoding/hex"
1111
"testing"
1212

13-
"golang.org/x/crypto/curve25519"
13+
"github.com/gitpod-io/golang-crypto/curve25519"
1414
)
1515

1616
func TestSealOpen(t *testing.T) {

nacl/box/example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66
"io"
77

8-
"golang.org/x/crypto/nacl/box"
8+
"github.com/gitpod-io/golang-crypto/nacl/box"
99
)
1010

1111
func Example() {

nacl/secretbox/example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"fmt"
1111
"io"
1212

13-
"golang.org/x/crypto/nacl/secretbox"
13+
"github.com/gitpod-io/golang-crypto/nacl/secretbox"
1414
)
1515

1616
func Example() {

nacl/secretbox/secretbox.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ This package is interoperable with NaCl: https://nacl.cr.yp.to/secretbox.html.
3535
package secretbox // import "golang.org/x/crypto/nacl/secretbox"
3636

3737
import (
38-
"golang.org/x/crypto/internal/alias"
39-
"golang.org/x/crypto/internal/poly1305"
40-
"golang.org/x/crypto/salsa20/salsa"
38+
"github.com/gitpod-io/golang-crypto/internal/alias"
39+
"github.com/gitpod-io/golang-crypto/internal/poly1305"
40+
"github.com/gitpod-io/golang-crypto/salsa20/salsa"
4141
)
4242

4343
// Overhead is the number of bytes of overhead when boxing a message.

nacl/sign/sign.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ package sign
2323
import (
2424
"io"
2525

26-
"golang.org/x/crypto/ed25519"
27-
"golang.org/x/crypto/internal/alias"
26+
"github.com/gitpod-io/golang-crypto/ed25519"
27+
"github.com/gitpod-io/golang-crypto/internal/alias"
2828
)
2929

3030
// Overhead is the number of bytes of overhead when signing a message.

openpgp/armor/armor.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ import (
1616
"bufio"
1717
"bytes"
1818
"encoding/base64"
19-
"golang.org/x/crypto/openpgp/errors"
2019
"io"
20+
21+
"github.com/gitpod-io/golang-crypto/openpgp/errors"
2122
)
2223

2324
// A Block represents an OpenPGP armored structure.

openpgp/clearsign/clearsign.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ import (
2626
"strconv"
2727
"strings"
2828

29-
"golang.org/x/crypto/openpgp/armor"
30-
"golang.org/x/crypto/openpgp/errors"
31-
"golang.org/x/crypto/openpgp/packet"
29+
"github.com/gitpod-io/golang-crypto/openpgp/armor"
30+
"github.com/gitpod-io/golang-crypto/openpgp/errors"
31+
"github.com/gitpod-io/golang-crypto/openpgp/packet"
3232
)
3333

3434
// A Block represents a clearsigned message. A signature on a Block can

openpgp/clearsign/clearsign_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
"io"
1111
"testing"
1212

13-
"golang.org/x/crypto/openpgp"
14-
"golang.org/x/crypto/openpgp/packet"
13+
"github.com/gitpod-io/golang-crypto/openpgp"
14+
"github.com/gitpod-io/golang-crypto/openpgp/packet"
1515
)
1616

1717
func testParse(t *testing.T, input []byte, expected, expectedPlaintext string) {

openpgp/keys.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import (
99
"io"
1010
"time"
1111

12-
"golang.org/x/crypto/openpgp/armor"
13-
"golang.org/x/crypto/openpgp/errors"
14-
"golang.org/x/crypto/openpgp/packet"
12+
"github.com/gitpod-io/golang-crypto/openpgp/armor"
13+
"github.com/gitpod-io/golang-crypto/openpgp/errors"
14+
"github.com/gitpod-io/golang-crypto/openpgp/packet"
1515
)
1616

1717
// PublicKeyType is the armor type for a PGP public key.

0 commit comments

Comments
 (0)