Browse Source

all: use HTTPS for links that support it

Many websites now support HTTPS that may not at the time the code was
committed; let's use the HTTPS links where we can.

Change-Id: I7099dfa0dbb213294e65b4387f343d6e8f955b97
Reviewed-on: https://go-review.googlesource.com/47131
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Kevin Burke 8 years ago
parent
commit
5ef0053f77

+ 1 - 1
AUTHORS

@@ -1,3 +1,3 @@
 # This source code refers to The Go Authors for copyright purposes.
 # This source code refers to The Go Authors for copyright purposes.
 # The master list of authors is in the main Go distribution,
 # The master list of authors is in the main Go distribution,
-# visible at http://tip.golang.org/AUTHORS.
+# visible at https://tip.golang.org/AUTHORS.

+ 1 - 1
CONTRIBUTORS

@@ -1,3 +1,3 @@
 # This source code was written by the Go contributors.
 # This source code was written by the Go contributors.
 # The master list of contributors is in the main Go distribution,
 # The master list of contributors is in the main Go distribution,
-# visible at http://tip.golang.org/CONTRIBUTORS.
+# visible at https://tip.golang.org/CONTRIBUTORS.

+ 1 - 1
README

@@ -1,3 +1,3 @@
 This repository holds supplementary Go cryptography libraries.
 This repository holds supplementary Go cryptography libraries.
 
 
-To submit changes to this repository, see http://golang.org/doc/contribute.html.
+To submit changes to this repository, see https://golang.org/doc/contribute.html.

+ 1 - 1
blowfish/blowfish_test.go

@@ -12,7 +12,7 @@ type CryptTest struct {
 	out []byte
 	out []byte
 }
 }
 
 
-// Test vector values are from http://www.schneier.com/code/vectors.txt.
+// Test vector values are from https://www.schneier.com/code/vectors.txt.
 var encryptTests = []CryptTest{
 var encryptTests = []CryptTest{
 	{
 	{
 		[]byte{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
 		[]byte{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},

+ 1 - 1
blowfish/cipher.go

@@ -6,7 +6,7 @@
 package blowfish // import "golang.org/x/crypto/blowfish"
 package blowfish // import "golang.org/x/crypto/blowfish"
 
 
 // The code is a port of Bruce Schneier's C implementation.
 // The code is a port of Bruce Schneier's C implementation.
-// See http://www.schneier.com/blowfish.html.
+// See https://www.schneier.com/blowfish.html.
 
 
 import "strconv"
 import "strconv"
 
 

+ 1 - 1
blowfish/const.go

@@ -4,7 +4,7 @@
 
 
 // The startup permutation array and substitution boxes.
 // The startup permutation array and substitution boxes.
 // They are the hexadecimal digits of PI; see:
 // They are the hexadecimal digits of PI; see:
-// http://www.schneier.com/code/constants.txt.
+// https://www.schneier.com/code/constants.txt.
 
 
 package blowfish
 package blowfish
 
 

+ 1 - 1
curve25519/const_amd64.h

@@ -3,6 +3,6 @@
 // license that can be found in the LICENSE file.
 // license that can be found in the LICENSE file.
 
 
 // This code was translated into a form compatible with 6a from the public
 // This code was translated into a form compatible with 6a from the public
-// domain sources in SUPERCOP: http://bench.cr.yp.to/supercop.html
+// domain sources in SUPERCOP: https://bench.cr.yp.to/supercop.html
 
 
 #define REDMASK51     0x0007FFFFFFFFFFFF
 #define REDMASK51     0x0007FFFFFFFFFFFF

+ 1 - 1
curve25519/const_amd64.s

@@ -3,7 +3,7 @@
 // license that can be found in the LICENSE file.
 // license that can be found in the LICENSE file.
 
 
 // This code was translated into a form compatible with 6a from the public
 // This code was translated into a form compatible with 6a from the public
-// domain sources in SUPERCOP: http://bench.cr.yp.to/supercop.html
+// domain sources in SUPERCOP: https://bench.cr.yp.to/supercop.html
 
 
 // +build amd64,!gccgo,!appengine
 // +build amd64,!gccgo,!appengine
 
 

+ 1 - 1
curve25519/doc.go

@@ -3,7 +3,7 @@
 // license that can be found in the LICENSE file.
 // license that can be found in the LICENSE file.
 
 
 // Package curve25519 provides an implementation of scalar multiplication on
 // Package curve25519 provides an implementation of scalar multiplication on
-// the elliptic curve known as curve25519. See http://cr.yp.to/ecdh.html
+// the elliptic curve known as curve25519. See https://cr.yp.to/ecdh.html
 package curve25519 // import "golang.org/x/crypto/curve25519"
 package curve25519 // import "golang.org/x/crypto/curve25519"
 
 
 // basePoint is the x coordinate of the generator of the curve.
 // basePoint is the x coordinate of the generator of the curve.

+ 1 - 1
curve25519/freeze_amd64.s

@@ -3,7 +3,7 @@
 // license that can be found in the LICENSE file.
 // license that can be found in the LICENSE file.
 
 
 // This code was translated into a form compatible with 6a from the public
 // This code was translated into a form compatible with 6a from the public
-// domain sources in SUPERCOP: http://bench.cr.yp.to/supercop.html
+// domain sources in SUPERCOP: https://bench.cr.yp.to/supercop.html
 
 
 // +build amd64,!gccgo,!appengine
 // +build amd64,!gccgo,!appengine
 
 

+ 1 - 1
curve25519/ladderstep_amd64.s

@@ -3,7 +3,7 @@
 // license that can be found in the LICENSE file.
 // license that can be found in the LICENSE file.
 
 
 // This code was translated into a form compatible with 6a from the public
 // This code was translated into a form compatible with 6a from the public
-// domain sources in SUPERCOP: http://bench.cr.yp.to/supercop.html
+// domain sources in SUPERCOP: https://bench.cr.yp.to/supercop.html
 
 
 // +build amd64,!gccgo,!appengine
 // +build amd64,!gccgo,!appengine
 
 

+ 1 - 1
curve25519/mul_amd64.s

@@ -3,7 +3,7 @@
 // license that can be found in the LICENSE file.
 // license that can be found in the LICENSE file.
 
 
 // This code was translated into a form compatible with 6a from the public
 // This code was translated into a form compatible with 6a from the public
-// domain sources in SUPERCOP: http://bench.cr.yp.to/supercop.html
+// domain sources in SUPERCOP: https://bench.cr.yp.to/supercop.html
 
 
 // +build amd64,!gccgo,!appengine
 // +build amd64,!gccgo,!appengine
 
 

+ 1 - 1
curve25519/square_amd64.s

@@ -3,7 +3,7 @@
 // license that can be found in the LICENSE file.
 // license that can be found in the LICENSE file.
 
 
 // This code was translated into a form compatible with 6a from the public
 // This code was translated into a form compatible with 6a from the public
-// domain sources in SUPERCOP: http://bench.cr.yp.to/supercop.html
+// domain sources in SUPERCOP: https://bench.cr.yp.to/supercop.html
 
 
 // +build amd64,!gccgo,!appengine
 // +build amd64,!gccgo,!appengine
 
 

+ 1 - 1
ed25519/ed25519.go

@@ -3,7 +3,7 @@
 // license that can be found in the LICENSE file.
 // license that can be found in the LICENSE file.
 
 
 // Package ed25519 implements the Ed25519 signature algorithm. See
 // Package ed25519 implements the Ed25519 signature algorithm. See
-// http://ed25519.cr.yp.to/.
+// https://ed25519.cr.yp.to/.
 //
 //
 // These functions are also compatible with the “Ed25519” function defined in
 // These functions are also compatible with the “Ed25519” function defined in
 // https://tools.ietf.org/html/draft-irtf-cfrg-eddsa-05.
 // https://tools.ietf.org/html/draft-irtf-cfrg-eddsa-05.

+ 1 - 1
ed25519/ed25519_test.go

@@ -91,7 +91,7 @@ func TestCryptoSigner(t *testing.T) {
 
 
 func TestGolden(t *testing.T) {
 func TestGolden(t *testing.T) {
 	// sign.input.gz is a selection of test cases from
 	// sign.input.gz is a selection of test cases from
-	// http://ed25519.cr.yp.to/python/sign.input
+	// https://ed25519.cr.yp.to/python/sign.input
 	testDataZ, err := os.Open("testdata/sign.input.gz")
 	testDataZ, err := os.Open("testdata/sign.input.gz")
 	if err != nil {
 	if err != nil {
 		t.Fatal(err)
 		t.Fatal(err)

+ 1 - 1
pkcs12/bmp-string.go

@@ -13,7 +13,7 @@ import (
 func bmpString(s string) ([]byte, error) {
 func bmpString(s string) ([]byte, error) {
 	// References:
 	// References:
 	// https://tools.ietf.org/html/rfc7292#appendix-B.1
 	// https://tools.ietf.org/html/rfc7292#appendix-B.1
-	// http://en.wikipedia.org/wiki/Plane_(Unicode)#Basic_Multilingual_Plane
+	// https://en.wikipedia.org/wiki/Plane_(Unicode)#Basic_Multilingual_Plane
 	//  - non-BMP characters are encoded in UTF 16 by using a surrogate pair of 16-bit codes
 	//  - non-BMP characters are encoded in UTF 16 by using a surrogate pair of 16-bit codes
 	//	  EncodeRune returns 0xfffd if the rune does not need special encoding
 	//	  EncodeRune returns 0xfffd if the rune does not need special encoding
 	//  - the above RFC provides the info that BMPStrings are NULL terminated.
 	//  - the above RFC provides the info that BMPStrings are NULL terminated.

+ 2 - 1
poly1305/poly1305.go

@@ -3,7 +3,8 @@
 // license that can be found in the LICENSE file.
 // license that can be found in the LICENSE file.
 
 
 /*
 /*
-Package poly1305 implements Poly1305 one-time message authentication code as specified in http://cr.yp.to/mac/poly1305-20050329.pdf.
+Package poly1305 implements Poly1305 one-time message authentication code as
+specified in https://cr.yp.to/mac/poly1305-20050329.pdf.
 
 
 Poly1305 is a fast, one-time authentication function. It is infeasible for an
 Poly1305 is a fast, one-time authentication function. It is infeasible for an
 attacker to generate an authenticator for a message without the key. However, a
 attacker to generate an authenticator for a message without the key. However, a

+ 1 - 1
salsa20/salsa/salsa2020_amd64.s

@@ -5,7 +5,7 @@
 // +build amd64,!appengine,!gccgo
 // +build amd64,!appengine,!gccgo
 
 
 // This code was translated into a form compatible with 6a from the public
 // This code was translated into a form compatible with 6a from the public
-// domain sources in SUPERCOP: http://bench.cr.yp.to/supercop.html
+// domain sources in SUPERCOP: https://bench.cr.yp.to/supercop.html
 
 
 // func salsa2020XORKeyStream(out, in *byte, n uint64, nonce, key *byte)
 // func salsa2020XORKeyStream(out, in *byte, n uint64, nonce, key *byte)
 // This needs up to 64 bytes at 360(SP); hence the non-obvious frame size.
 // This needs up to 64 bytes at 360(SP); hence the non-obvious frame size.

+ 3 - 3
salsa20/salsa20.go

@@ -3,20 +3,20 @@
 // license that can be found in the LICENSE file.
 // license that can be found in the LICENSE file.
 
 
 /*
 /*
-Package salsa20 implements the Salsa20 stream cipher as specified in http://cr.yp.to/snuffle/spec.pdf.
+Package salsa20 implements the Salsa20 stream cipher as specified in https://cr.yp.to/snuffle/spec.pdf.
 
 
 Salsa20 differs from many other stream ciphers in that it is message orientated
 Salsa20 differs from many other stream ciphers in that it is message orientated
 rather than byte orientated. Keystream blocks are not preserved between calls,
 rather than byte orientated. Keystream blocks are not preserved between calls,
 therefore each side must encrypt/decrypt data with the same segmentation.
 therefore each side must encrypt/decrypt data with the same segmentation.
 
 
 Another aspect of this difference is that part of the counter is exposed as
 Another aspect of this difference is that part of the counter is exposed as
-an nonce in each call. Encrypting two different messages with the same (key,
+a nonce in each call. Encrypting two different messages with the same (key,
 nonce) pair leads to trivial plaintext recovery. This is analogous to
 nonce) pair leads to trivial plaintext recovery. This is analogous to
 encrypting two different messages with the same key with a traditional stream
 encrypting two different messages with the same key with a traditional stream
 cipher.
 cipher.
 
 
 This package also implements XSalsa20: a version of Salsa20 with a 24-byte
 This package also implements XSalsa20: a version of Salsa20 with a 24-byte
-nonce as specified in http://cr.yp.to/snuffle/xsalsa-20081128.pdf. Simply
+nonce as specified in https://cr.yp.to/snuffle/xsalsa-20081128.pdf. Simply
 passing a 24-byte slice as the nonce triggers XSalsa20.
 passing a 24-byte slice as the nonce triggers XSalsa20.
 */
 */
 package salsa20 // import "golang.org/x/crypto/salsa20"
 package salsa20 // import "golang.org/x/crypto/salsa20"

+ 1 - 1
scrypt/scrypt.go

@@ -4,7 +4,7 @@
 
 
 // Package scrypt implements the scrypt key derivation function as defined in
 // Package scrypt implements the scrypt key derivation function as defined in
 // Colin Percival's paper "Stronger Key Derivation via Sequential Memory-Hard
 // Colin Percival's paper "Stronger Key Derivation via Sequential Memory-Hard
-// Functions" (http://www.tarsnap.com/scrypt/scrypt.pdf).
+// Functions" (https://www.tarsnap.com/scrypt/scrypt.pdf).
 package scrypt // import "golang.org/x/crypto/scrypt"
 package scrypt // import "golang.org/x/crypto/scrypt"
 
 
 import (
 import (

+ 1 - 1
twofish/twofish.go

@@ -5,7 +5,7 @@
 // Package twofish implements Bruce Schneier's Twofish encryption algorithm.
 // Package twofish implements Bruce Schneier's Twofish encryption algorithm.
 package twofish // import "golang.org/x/crypto/twofish"
 package twofish // import "golang.org/x/crypto/twofish"
 
 
-// Twofish is defined in http://www.schneier.com/paper-twofish-paper.pdf [TWOFISH]
+// Twofish is defined in https://www.schneier.com/paper-twofish-paper.pdf [TWOFISH]
 
 
 // This code is a port of the LibTom C implementation.
 // This code is a port of the LibTom C implementation.
 // See http://libtom.org/?page=features&newsitems=5&whatfile=crypt.
 // See http://libtom.org/?page=features&newsitems=5&whatfile=crypt.

+ 1 - 1
twofish/twofish_test.go

@@ -69,7 +69,7 @@ var testVectors = []struct {
 		[]byte{0x90, 0xAF, 0xE9, 0x1B, 0xB2, 0x88, 0x54, 0x4F, 0x2C, 0x32, 0xDC, 0x23, 0x9B, 0x26, 0x35, 0xE6},
 		[]byte{0x90, 0xAF, 0xE9, 0x1B, 0xB2, 0x88, 0x54, 0x4F, 0x2C, 0x32, 0xDC, 0x23, 0x9B, 0x26, 0x35, 0xE6},
 		[]byte{0x6C, 0xB4, 0x56, 0x1C, 0x40, 0xBF, 0x0A, 0x97, 0x05, 0x93, 0x1C, 0xB6, 0xD4, 0x08, 0xE7, 0xFA},
 		[]byte{0x6C, 0xB4, 0x56, 0x1C, 0x40, 0xBF, 0x0A, 0x97, 0x05, 0x93, 0x1C, 0xB6, 0xD4, 0x08, 0xE7, 0xFA},
 	},
 	},
-	// These test are derived from http://www.schneier.com/code/ecb_ival.txt
+	// These tests are derived from https://www.schneier.com/code/ecb_ival.txt
 	{
 	{
 		[]byte{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
 		[]byte{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
 		[]byte{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
 		[]byte{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},