summaryrefslogtreecommitdiffstats
path: root/vendor
diff options
context:
space:
mode:
Diffstat (limited to 'vendor')
-rw-r--r--vendor/golang.org/x/crypto/chacha20/chacha_arm64.go17
-rw-r--r--vendor/golang.org/x/crypto/chacha20/chacha_arm64.s (renamed from vendor/golang.org/x/crypto/internal/chacha20/asm_arm64.s)0
-rw-r--r--vendor/golang.org/x/crypto/chacha20/chacha_generic.go364
-rw-r--r--vendor/golang.org/x/crypto/chacha20/chacha_noasm.go13
-rw-r--r--vendor/golang.org/x/crypto/chacha20/chacha_ppc64le.go16
-rw-r--r--vendor/golang.org/x/crypto/chacha20/chacha_ppc64le.s449
-rw-r--r--vendor/golang.org/x/crypto/chacha20/chacha_s390x.go26
-rw-r--r--vendor/golang.org/x/crypto/chacha20/chacha_s390x.s (renamed from vendor/golang.org/x/crypto/internal/chacha20/chacha_s390x.s)40
-rw-r--r--vendor/golang.org/x/crypto/chacha20/xor.go (renamed from vendor/golang.org/x/crypto/internal/chacha20/xor.go)4
-rw-r--r--vendor/golang.org/x/crypto/curve25519/const_amd64.h8
-rw-r--r--vendor/golang.org/x/crypto/curve25519/const_amd64.s20
-rw-r--r--vendor/golang.org/x/crypto/curve25519/cswap_amd64.s65
-rw-r--r--vendor/golang.org/x/crypto/curve25519/curve25519.go881
-rw-r--r--vendor/golang.org/x/crypto/curve25519/curve25519_amd64.go (renamed from vendor/golang.org/x/crypto/curve25519/mont25519_amd64.go)2
-rw-r--r--vendor/golang.org/x/crypto/curve25519/curve25519_amd64.s (renamed from vendor/golang.org/x/crypto/curve25519/ladderstep_amd64.s)420
-rw-r--r--vendor/golang.org/x/crypto/curve25519/curve25519_generic.go828
-rw-r--r--vendor/golang.org/x/crypto/curve25519/curve25519_noasm.go11
-rw-r--r--vendor/golang.org/x/crypto/curve25519/doc.go23
-rw-r--r--vendor/golang.org/x/crypto/curve25519/freeze_amd64.s73
-rw-r--r--vendor/golang.org/x/crypto/curve25519/mul_amd64.s169
-rw-r--r--vendor/golang.org/x/crypto/curve25519/square_amd64.s132
-rw-r--r--vendor/golang.org/x/crypto/internal/chacha20/asm_ppc64le.s668
-rw-r--r--vendor/golang.org/x/crypto/internal/chacha20/chacha_arm64.go31
-rw-r--r--vendor/golang.org/x/crypto/internal/chacha20/chacha_generic.go264
-rw-r--r--vendor/golang.org/x/crypto/internal/chacha20/chacha_noasm.go16
-rw-r--r--vendor/golang.org/x/crypto/internal/chacha20/chacha_ppc64le.go52
-rw-r--r--vendor/golang.org/x/crypto/internal/chacha20/chacha_s390x.go29
-rw-r--r--vendor/golang.org/x/crypto/openpgp/elgamal/elgamal.go4
-rw-r--r--vendor/golang.org/x/crypto/openpgp/packet/encrypted_key.go6
-rw-r--r--vendor/golang.org/x/crypto/openpgp/packet/private_key.go2
-rw-r--r--vendor/golang.org/x/crypto/poly1305/bits_compat.go39
-rw-r--r--vendor/golang.org/x/crypto/poly1305/bits_go1.13.go21
-rw-r--r--vendor/golang.org/x/crypto/poly1305/poly1305.go10
-rw-r--r--vendor/golang.org/x/crypto/poly1305/sum_amd64.go56
-rw-r--r--vendor/golang.org/x/crypto/poly1305/sum_amd64.s40
-rw-r--r--vendor/golang.org/x/crypto/poly1305/sum_arm.go7
-rw-r--r--vendor/golang.org/x/crypto/poly1305/sum_generic.go391
-rw-r--r--vendor/golang.org/x/crypto/poly1305/sum_noasm.go5
-rw-r--r--vendor/golang.org/x/crypto/poly1305/sum_ppc64le.go56
-rw-r--r--vendor/golang.org/x/crypto/poly1305/sum_ppc64le.s66
-rw-r--r--vendor/golang.org/x/crypto/poly1305/sum_s390x.go5
-rw-r--r--vendor/golang.org/x/crypto/ssh/cipher.go51
-rw-r--r--vendor/golang.org/x/crypto/ssh/common.go10
-rw-r--r--vendor/golang.org/x/crypto/ssh/kex.go2
-rw-r--r--vendor/golang.org/x/net/internal/socks/socks.go2
-rw-r--r--vendor/golang.org/x/sys/unix/bluetooth_linux.go1
-rw-r--r--vendor/golang.org/x/sys/unix/fdset.go29
-rw-r--r--vendor/golang.org/x/sys/unix/mkerrors.sh2
-rw-r--r--vendor/golang.org/x/sys/unix/sockcmsg_dragonfly.go16
-rw-r--r--vendor/golang.org/x/sys/unix/sockcmsg_linux.go2
-rw-r--r--vendor/golang.org/x/sys/unix/sockcmsg_unix.go36
-rw-r--r--vendor/golang.org/x/sys/unix/sockcmsg_unix_other.go38
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_bsd.go2
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_darwin.1_13.go2
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_darwin.go2
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_darwin_386.go1
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go1
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_darwin_arm.go4
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go4
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_dragonfly.go24
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_freebsd.go13
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_linux.go2
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_netbsd.go4
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_openbsd.go4
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_solaris.go2
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_386.go6
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go6
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_arm.go6
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go6
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_mips.go6
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go6
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go6
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go6
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go6
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go6
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go6
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go6
-rw-r--r--vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go6
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_11.go32
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go42
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_darwin_386.s6
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_11.go32
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go42
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s4
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_11.go16
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go21
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_11.go16
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go21
-rw-r--r--vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s4
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go2
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_386.go181
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go181
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_arm.go181
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go181
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_mips.go181
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go181
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go181
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go181
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go181
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go181
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go181
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go181
-rw-r--r--vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go181
-rw-r--r--vendor/golang.org/x/sys/windows/empty.s8
-rw-r--r--vendor/golang.org/x/sys/windows/security_windows.go4
-rw-r--r--vendor/golang.org/x/sys/windows/syscall_windows.go12
-rw-r--r--vendor/golang.org/x/sys/windows/zsyscall_windows.go31
-rw-r--r--vendor/modules.txt10
108 files changed, 5213 insertions, 3104 deletions
diff --git a/vendor/golang.org/x/crypto/chacha20/chacha_arm64.go b/vendor/golang.org/x/crypto/chacha20/chacha_arm64.go
new file mode 100644
index 000000000..87f1e369c
--- /dev/null
+++ b/vendor/golang.org/x/crypto/chacha20/chacha_arm64.go
@@ -0,0 +1,17 @@
+// Copyright 2018 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// +build go1.11
+// +build !gccgo,!appengine
+
+package chacha20
+
+const bufSize = 256
+
+//go:noescape
+func xorKeyStreamVX(dst, src []byte, key *[8]uint32, nonce *[3]uint32, counter *uint32)
+
+func (c *Cipher) xorKeyStreamBlocks(dst, src []byte) {
+ xorKeyStreamVX(dst, src, &c.key, &c.nonce, &c.counter)
+}
diff --git a/vendor/golang.org/x/crypto/internal/chacha20/asm_arm64.s b/vendor/golang.org/x/crypto/chacha20/chacha_arm64.s
index b3a16ef75..b3a16ef75 100644
--- a/vendor/golang.org/x/crypto/internal/chacha20/asm_arm64.s
+++ b/vendor/golang.org/x/crypto/chacha20/chacha_arm64.s
diff --git a/vendor/golang.org/x/crypto/chacha20/chacha_generic.go b/vendor/golang.org/x/crypto/chacha20/chacha_generic.go
new file mode 100644
index 000000000..098ec9f6b
--- /dev/null
+++ b/vendor/golang.org/x/crypto/chacha20/chacha_generic.go
@@ -0,0 +1,364 @@
+// Copyright 2016 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// Package chacha20 implements the ChaCha20 and XChaCha20 encryption algorithms
+// as specified in RFC 8439 and draft-irtf-cfrg-xchacha-01.
+package chacha20
+
+import (
+ "crypto/cipher"
+ "encoding/binary"
+ "errors"
+ "math/bits"
+
+ "golang.org/x/crypto/internal/subtle"
+)
+
+const (
+ // KeySize is the size of the key used by this cipher, in bytes.
+ KeySize = 32
+
+ // NonceSize is the size of the nonce used with the standard variant of this
+ // cipher, in bytes.
+ //
+ // Note that this is too short to be safely generated at random if the same
+ // key is reused more than 2³² times.
+ NonceSize = 12
+
+ // NonceSizeX is the size of the nonce used with the XChaCha20 variant of
+ // this cipher, in bytes.
+ NonceSizeX = 24
+)
+
+// Cipher is a stateful instance of ChaCha20 or XChaCha20 using a particular key
+// and nonce. A *Cipher implements the cipher.Stream interface.
+type Cipher struct {
+ // The ChaCha20 state is 16 words: 4 constant, 8 of key, 1 of counter
+ // (incremented after each block), and 3 of nonce.
+ key [8]uint32
+ counter uint32
+ nonce [3]uint32
+
+ // The last len bytes of buf are leftover key stream bytes from the previous
+ // XORKeyStream invocation. The size of buf depends on how many blocks are
+ // computed at a time.
+ buf [bufSize]byte
+ len int
+
+ // The counter-independent results of the first round are cached after they
+ // are computed the first time.
+ precompDone bool
+ p1, p5, p9, p13 uint32
+ p2, p6, p10, p14 uint32
+ p3, p7, p11, p15 uint32
+}
+
+var _ cipher.Stream = (*Cipher)(nil)
+
+// NewUnauthenticatedCipher creates a new ChaCha20 stream cipher with the given
+// 32 bytes key and a 12 or 24 bytes nonce. If a nonce of 24 bytes is provided,
+// the XChaCha20 construction will be used. It returns an error if key or nonce
+// have any other length.
+//
+// Note that ChaCha20, like all stream ciphers, is not authenticated and allows
+// attackers to silently tamper with the plaintext. For this reason, it is more
+// appropriate as a building block than as a standalone encryption mechanism.
+// Instead, consider using package golang.org/x/crypto/chacha20poly1305.
+func NewUnauthenticatedCipher(key, nonce []byte) (*Cipher, error) {
+ // This function is split into a wrapper so that the Cipher allocation will
+ // be inlined, and depending on how the caller uses the return value, won't