Browse Source

Bump golang.org/x/crypto from 0.5.0 to 0.17.0

Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.5.0 to 0.17.0.
- [Commits](https://github.com/golang/crypto/compare/v0.5.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
tags/v2.13.0-rc1
dependabot[bot] 4 months ago
parent
commit
16ab0a67b5
No account linked to committer's email address
100 changed files with 63 additions and 201 deletions
  1. 4
    4
      go.mod
  2. 12
    11
      go.sum
  3. 0
    1
      vendor/golang.org/x/crypto/sha3/hashes_generic.go
  4. 0
    1
      vendor/golang.org/x/crypto/sha3/keccakf.go
  5. 0
    1
      vendor/golang.org/x/crypto/sha3/keccakf_amd64.go
  6. 2
    3
      vendor/golang.org/x/crypto/sha3/keccakf_amd64.s
  7. 0
    1
      vendor/golang.org/x/crypto/sha3/register.go
  8. 9
    5
      vendor/golang.org/x/crypto/sha3/sha3.go
  9. 6
    5
      vendor/golang.org/x/crypto/sha3/sha3_s390x.go
  10. 0
    1
      vendor/golang.org/x/crypto/sha3/sha3_s390x.s
  11. 14
    15
      vendor/golang.org/x/crypto/sha3/shake.go
  12. 0
    1
      vendor/golang.org/x/crypto/sha3/shake_generic.go
  13. 0
    1
      vendor/golang.org/x/crypto/sha3/xor.go
  14. 0
    2
      vendor/golang.org/x/crypto/sha3/xor_unaligned.go
  15. 0
    1
      vendor/golang.org/x/sys/cpu/asm_aix_ppc64.s
  16. 4
    1
      vendor/golang.org/x/sys/cpu/cpu.go
  17. 0
    1
      vendor/golang.org/x/sys/cpu/cpu_aix.go
  18. 0
    1
      vendor/golang.org/x/sys/cpu/cpu_arm64.s
  19. 0
    1
      vendor/golang.org/x/sys/cpu/cpu_gc_arm64.go
  20. 0
    1
      vendor/golang.org/x/sys/cpu/cpu_gc_s390x.go
  21. 0
    2
      vendor/golang.org/x/sys/cpu/cpu_gc_x86.go
  22. 0
    1
      vendor/golang.org/x/sys/cpu/cpu_gccgo_arm64.go
  23. 0
    1
      vendor/golang.org/x/sys/cpu/cpu_gccgo_s390x.go
  24. 0
    2
      vendor/golang.org/x/sys/cpu/cpu_gccgo_x86.c
  25. 0
    2
      vendor/golang.org/x/sys/cpu/cpu_gccgo_x86.go
  26. 0
    1
      vendor/golang.org/x/sys/cpu/cpu_linux.go
  27. 0
    2
      vendor/golang.org/x/sys/cpu/cpu_linux_mips64x.go
  28. 0
    1
      vendor/golang.org/x/sys/cpu/cpu_linux_noinit.go
  29. 0
    2
      vendor/golang.org/x/sys/cpu/cpu_linux_ppc64x.go
  30. 0
    1
      vendor/golang.org/x/sys/cpu/cpu_loong64.go
  31. 0
    1
      vendor/golang.org/x/sys/cpu/cpu_mips64x.go
  32. 0
    1
      vendor/golang.org/x/sys/cpu/cpu_mipsx.go
  33. 0
    1
      vendor/golang.org/x/sys/cpu/cpu_other_arm.go
  34. 0
    1
      vendor/golang.org/x/sys/cpu/cpu_other_arm64.go
  35. 0
    2
      vendor/golang.org/x/sys/cpu/cpu_other_mips64x.go
  36. 0
    3
      vendor/golang.org/x/sys/cpu/cpu_other_ppc64x.go
  37. 0
    1
      vendor/golang.org/x/sys/cpu/cpu_other_riscv64.go
  38. 0
    1
      vendor/golang.org/x/sys/cpu/cpu_ppc64x.go
  39. 1
    2
      vendor/golang.org/x/sys/cpu/cpu_riscv64.go
  40. 0
    1
      vendor/golang.org/x/sys/cpu/cpu_s390x.s
  41. 0
    1
      vendor/golang.org/x/sys/cpu/cpu_wasm.go
  42. 7
    1
      vendor/golang.org/x/sys/cpu/cpu_x86.go
  43. 0
    2
      vendor/golang.org/x/sys/cpu/cpu_x86.s
  44. 0
    1
      vendor/golang.org/x/sys/cpu/endian_big.go
  45. 1
    2
      vendor/golang.org/x/sys/cpu/endian_little.go
  46. 2
    2
      vendor/golang.org/x/sys/cpu/hwcap_linux.go
  47. 0
    1
      vendor/golang.org/x/sys/cpu/proc_cpuinfo_linux.go
  48. 0
    1
      vendor/golang.org/x/sys/cpu/runtime_auxv_go121.go
  49. 0
    1
      vendor/golang.org/x/sys/cpu/syscall_aix_gccgo.go
  50. 0
    1
      vendor/golang.org/x/sys/cpu/syscall_aix_ppc64_gc.go
  51. 0
    30
      vendor/golang.org/x/sys/internal/unsafeheader/unsafeheader.go
  52. 0
    1
      vendor/golang.org/x/sys/plan9/pwd_go15_plan9.go
  53. 0
    1
      vendor/golang.org/x/sys/plan9/pwd_plan9.go
  54. 0
    1
      vendor/golang.org/x/sys/plan9/race.go
  55. 0
    1
      vendor/golang.org/x/sys/plan9/race0.go
  56. 0
    1
      vendor/golang.org/x/sys/plan9/str.go
  57. 0
    1
      vendor/golang.org/x/sys/plan9/syscall.go
  58. 0
    1
      vendor/golang.org/x/sys/plan9/zsyscall_plan9_386.go
  59. 0
    1
      vendor/golang.org/x/sys/plan9/zsyscall_plan9_amd64.go
  60. 0
    1
      vendor/golang.org/x/sys/plan9/zsyscall_plan9_arm.go
  61. 0
    2
      vendor/golang.org/x/sys/unix/aliases.go
  62. 0
    1
      vendor/golang.org/x/sys/unix/asm_aix_ppc64.s
  63. 0
    2
      vendor/golang.org/x/sys/unix/asm_bsd_386.s
  64. 0
    2
      vendor/golang.org/x/sys/unix/asm_bsd_amd64.s
  65. 0
    2
      vendor/golang.org/x/sys/unix/asm_bsd_arm.s
  66. 0
    2
      vendor/golang.org/x/sys/unix/asm_bsd_arm64.s
  67. 0
    2
      vendor/golang.org/x/sys/unix/asm_bsd_ppc64.s
  68. 0
    2
      vendor/golang.org/x/sys/unix/asm_bsd_riscv64.s
  69. 0
    1
      vendor/golang.org/x/sys/unix/asm_linux_386.s
  70. 0
    1
      vendor/golang.org/x/sys/unix/asm_linux_amd64.s
  71. 0
    1
      vendor/golang.org/x/sys/unix/asm_linux_arm.s
  72. 0
    3
      vendor/golang.org/x/sys/unix/asm_linux_arm64.s
  73. 0
    3
      vendor/golang.org/x/sys/unix/asm_linux_loong64.s
  74. 0
    3
      vendor/golang.org/x/sys/unix/asm_linux_mips64x.s
  75. 0
    3
      vendor/golang.org/x/sys/unix/asm_linux_mipsx.s
  76. 0
    3
      vendor/golang.org/x/sys/unix/asm_linux_ppc64x.s
  77. 0
    2
      vendor/golang.org/x/sys/unix/asm_linux_riscv64.s
  78. 0
    3
      vendor/golang.org/x/sys/unix/asm_linux_s390x.s
  79. 0
    1
      vendor/golang.org/x/sys/unix/asm_openbsd_mips64.s
  80. 0
    1
      vendor/golang.org/x/sys/unix/asm_solaris_amd64.s
  81. 0
    3
      vendor/golang.org/x/sys/unix/asm_zos_s390x.s
  82. 0
    1
      vendor/golang.org/x/sys/unix/cap_freebsd.go
  83. 0
    1
      vendor/golang.org/x/sys/unix/constants.go
  84. 0
    1
      vendor/golang.org/x/sys/unix/dev_aix_ppc.go
  85. 0
    1
      vendor/golang.org/x/sys/unix/dev_aix_ppc64.go
  86. 0
    1
      vendor/golang.org/x/sys/unix/dev_zos.go
  87. 0
    1
      vendor/golang.org/x/sys/unix/dirent.go
  88. 0
    1
      vendor/golang.org/x/sys/unix/endian_big.go
  89. 0
    1
      vendor/golang.org/x/sys/unix/endian_little.go
  90. 0
    1
      vendor/golang.org/x/sys/unix/env_unix.go
  91. 0
    1
      vendor/golang.org/x/sys/unix/epoll_zos.go
  92. 1
    2
      vendor/golang.org/x/sys/unix/fcntl.go
  93. 0
    1
      vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go
  94. 0
    1
      vendor/golang.org/x/sys/unix/fdset.go
  95. 0
    1
      vendor/golang.org/x/sys/unix/fstatfs_zos.go
  96. 0
    1
      vendor/golang.org/x/sys/unix/gccgo.go
  97. 0
    1
      vendor/golang.org/x/sys/unix/gccgo_c.c
  98. 0
    1
      vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go
  99. 0
    1
      vendor/golang.org/x/sys/unix/ifreq_linux.go
  100. 0
    0
      vendor/golang.org/x/sys/unix/ioctl_linux.go

+ 4
- 4
go.mod View File

@@ -21,9 +21,9 @@ require (
21 21
 	github.com/tidwall/buntdb v1.2.10
22 22
 	github.com/toorop/go-dkim v0.0.0-20201103131630-e1cd1a0a5208
23 23
 	github.com/xdg-go/scram v1.0.2
24
-	golang.org/x/crypto v0.5.0
25
-	golang.org/x/term v0.7.0
26
-	golang.org/x/text v0.6.0
24
+	golang.org/x/crypto v0.17.0
25
+	golang.org/x/term v0.15.0
26
+	golang.org/x/text v0.14.0
27 27
 	gopkg.in/yaml.v2 v2.4.0
28 28
 )
29 29
 
@@ -36,7 +36,7 @@ require (
36 36
 	github.com/tidwall/rtred v0.1.2 // indirect
37 37
 	github.com/tidwall/tinyqueue v0.1.1 // indirect
38 38
 	github.com/xdg-go/pbkdf2 v1.0.0 // indirect
39
-	golang.org/x/sys v0.7.0 // indirect
39
+	golang.org/x/sys v0.15.0 // indirect
40 40
 )
41 41
 
42 42
 replace github.com/gorilla/websocket => github.com/ergochat/websocket v1.4.2-oragono1

+ 12
- 11
go.sum View File

@@ -8,8 +8,6 @@ github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815 h1:bWDMxwH3px2JBh
8 8
 github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE=
9 9
 github.com/ergochat/confusables v0.0.0-20201108231250-4ab98ab61fb1 h1:WLHTOodthVyv5NvYLIvWl112kSFv5IInKKrRN2qpons=
10 10
 github.com/ergochat/confusables v0.0.0-20201108231250-4ab98ab61fb1/go.mod h1:mov+uh1DPWsltdQnOdzn08UO9GsJ3MEvhtu0Ci37fdk=
11
-github.com/ergochat/go-ident v0.0.0-20200511222032-830550b1d775 h1:QSJIdpr3HOzJDPwxT7hp7WbjoZcS+5GqVvsBscqChk0=
12
-github.com/ergochat/go-ident v0.0.0-20200511222032-830550b1d775/go.mod h1:d2qvgjD0TvGNSvUs+mZgX090RiJlrzUYW6vtANGOy3A=
13 11
 github.com/ergochat/go-ident v0.0.0-20230911071154-8c30606d6881 h1:+J5m88nvybxB5AnBVGzTXM/yHVytt48rXBGcJGzSbms=
14 12
 github.com/ergochat/go-ident v0.0.0-20230911071154-8c30606d6881/go.mod h1:ASYJtQujNitna6cVHsNQTGrfWvMPJ5Sa2lZlmsH65uM=
15 13
 github.com/ergochat/irc-go v0.4.0 h1:0YibCKfAAtwxQdNjLQd9xpIEPisLcJ45f8FNsMHAuZc=
@@ -44,6 +42,7 @@ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+
44 42
 github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk=
45 43
 github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
46 44
 github.com/tidwall/assert v0.1.0 h1:aWcKyRBUAdLoVebxo95N7+YZVTFF/ASTr7BN4sLP6XI=
45
+github.com/tidwall/assert v0.1.0/go.mod h1:QLYtGyeqse53vuELQheYl9dngGCJQ+mTtlxcktb+Kj8=
47 46
 github.com/tidwall/btree v1.4.2 h1:PpkaieETJMUxYNADsjgtNRcERX7mGc/GP2zp/r5FM3g=
48 47
 github.com/tidwall/btree v1.4.2/go.mod h1:LGm8L/DZjPLmeWGjv5kFrY8dL4uVhMmzmmLYmsObdKE=
49 48
 github.com/tidwall/buntdb v1.2.10 h1:U/ebfkmYPBnyiNZIirUiWFcxA/mgzjbKlyPynFsPtyM=
@@ -54,6 +53,7 @@ github.com/tidwall/gjson v1.14.3/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vl
54 53
 github.com/tidwall/grect v0.1.4 h1:dA3oIgNgWdSspFzn1kS4S/RDpZFLrIxAZOdJKjYapOg=
55 54
 github.com/tidwall/grect v0.1.4/go.mod h1:9FBsaYRaR0Tcy4UwefBX/UDcDcDy9V5jUcxHzv2jd5Q=
56 55
 github.com/tidwall/lotsa v1.0.2 h1:dNVBH5MErdaQ/xd9s769R31/n2dXavsQ0Yf4TMEHHw8=
56
+github.com/tidwall/lotsa v1.0.2/go.mod h1:X6NiU+4yHA3fE3Puvpnn1XMDrFZrE9JO2/w+UMuqgR8=
57 57
 github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA=
58 58
 github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM=
59 59
 github.com/tidwall/pretty v1.2.0 h1:RWIZEg2iJ8/g6fDDYzMpobmaoGh5OLl4AXtGUGPcqCs=
@@ -68,21 +68,22 @@ github.com/xdg-go/pbkdf2 v1.0.0 h1:Su7DPu48wXMwC3bs7MCNG+z4FhcyEuz5dlvchbq0B0c=
68 68
 github.com/xdg-go/pbkdf2 v1.0.0/go.mod h1:jrpuAogTd400dnrH08LKmI/xc1MbPOebTwRqcT5RDeI=
69 69
 github.com/xdg-go/stringprep v1.0.2 h1:6iq84/ryjjeRmMJwxutI51F2GIPlP5BfTvXHeYjyhBc=
70 70
 github.com/xdg-go/stringprep v1.0.2/go.mod h1:8F9zXuvzgwmyT5DUm4GUfZGDdT3W+LCvS6+da4O5kxM=
71
-golang.org/x/crypto v0.5.0 h1:U/0M97KRkSFvyD/3FSmdP5W5swImpNgle/EHFhOsQPE=
72
-golang.org/x/crypto v0.5.0/go.mod h1:NK/OQwhpMQP3MwtdjgLlYHnH9ebylxKWv3e0fK+mkQU=
71
+golang.org/x/crypto v0.17.0 h1:r8bRNjWL3GshPW3gkd+RpvzWrZAwPS49OmTGZ/uhM4k=
72
+golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4=
73 73
 golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
74
-golang.org/x/net v0.5.0 h1:GyT4nK/YDHSqa1c4753ouYCDajOYKTja9Xb/OHtgvSw=
74
+golang.org/x/net v0.10.0 h1:X2//UzNDwYmtCLn7To6G58Wr6f5ahEAQgKNzv9Y951M=
75
+golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg=
75 76
 golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
76 77
 golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
77 78
 golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
78
-golang.org/x/sys v0.7.0 h1:3jlCCIQZPdOYu1h8BkNvLz8Kgwtae2cagcG/VamtZRU=
79
-golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
80
-golang.org/x/term v0.7.0 h1:BEvjmm5fURWqcfbSKTdpkDXYBrUS1c0m8agp14W48vQ=
81
-golang.org/x/term v0.7.0/go.mod h1:P32HKFT3hSsZrRxla30E9HqToFYAQPCMs/zFMBUFqPY=
79
+golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc=
80
+golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
81
+golang.org/x/term v0.15.0 h1:y/Oo/a/q3IXu26lQgl04j/gjuBDOBlx7X6Om1j2CPW4=
82
+golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0=
82 83
 golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
83 84
 golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
84
-golang.org/x/text v0.6.0 h1:3XmdazWV+ubf7QgHSTWeykHOci5oeekaGJBLkrkaw4k=
85
-golang.org/x/text v0.6.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
85
+golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ=
86
+golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
86 87
 golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
87 88
 golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7 h1:9zdDQZ7Thm29KFXgAX/+yaf3eVbP7djjWp/dXAppNCc=
88 89
 golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=

+ 0
- 1
vendor/golang.org/x/crypto/sha3/hashes_generic.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build !gc || purego || !s390x
6
-// +build !gc purego !s390x
7 6
 
8 7
 package sha3
9 8
 

+ 0
- 1
vendor/golang.org/x/crypto/sha3/keccakf.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build !amd64 || purego || !gc
6
-// +build !amd64 purego !gc
7 6
 
8 7
 package sha3
9 8
 

+ 0
- 1
vendor/golang.org/x/crypto/sha3/keccakf_amd64.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build amd64 && !purego && gc
6
-// +build amd64,!purego,gc
7 6
 
8 7
 package sha3
9 8
 

+ 2
- 3
vendor/golang.org/x/crypto/sha3/keccakf_amd64.s View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build amd64 && !purego && gc
6
-// +build amd64,!purego,gc
7 6
 
8 7
 // This code was translated into a form compatible with 6a from the public
9 8
 // domain sources at https://github.com/gvanas/KeccakCodePackage
@@ -320,9 +319,9 @@
320 319
 	MOVQ rDi, _si(oState); \
321 320
 	MOVQ rDo, _so(oState)  \
322 321
 
323
-// func keccakF1600(state *[25]uint64)
322
+// func keccakF1600(a *[25]uint64)
324 323
 TEXT ·keccakF1600(SB), 0, $200-8
325
-	MOVQ state+0(FP), rpState
324
+	MOVQ a+0(FP), rpState
326 325
 
327 326
 	// Convert the user state into an internal state
328 327
 	NOTQ _be(rpState)

+ 0
- 1
vendor/golang.org/x/crypto/sha3/register.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build go1.4
6
-// +build go1.4
7 6
 
8 7
 package sha3
9 8
 

+ 9
- 5
vendor/golang.org/x/crypto/sha3/sha3.go View File

@@ -121,11 +121,11 @@ func (d *state) padAndPermute(dsbyte byte) {
121 121
 	copyOut(d, d.buf)
122 122
 }
123 123
 
124
-// Write absorbs more data into the hash's state. It produces an error
125
-// if more data is written to the ShakeHash after writing
124
+// Write absorbs more data into the hash's state. It panics if any
125
+// output has already been read.
126 126
 func (d *state) Write(p []byte) (written int, err error) {
127 127
 	if d.state != spongeAbsorbing {
128
-		panic("sha3: write to sponge after read")
128
+		panic("sha3: Write after Read")
129 129
 	}
130 130
 	if d.buf == nil {
131 131
 		d.buf = d.storage.asBytes()[:0]
@@ -182,12 +182,16 @@ func (d *state) Read(out []byte) (n int, err error) {
182 182
 }
183 183
 
184 184
 // Sum applies padding to the hash state and then squeezes out the desired
185
-// number of output bytes.
185
+// number of output bytes. It panics if any output has already been read.
186 186
 func (d *state) Sum(in []byte) []byte {
187
+	if d.state != spongeAbsorbing {
188
+		panic("sha3: Sum after Read")
189
+	}
190
+
187 191
 	// Make a copy of the original hash so that caller can keep writing
188 192
 	// and summing.
189 193
 	dup := d.clone()
190
-	hash := make([]byte, dup.outputLen)
194
+	hash := make([]byte, dup.outputLen, 64) // explicit cap to allow stack allocation
191 195
 	dup.Read(hash)
192 196
 	return append(in, hash...)
193 197
 }

+ 6
- 5
vendor/golang.org/x/crypto/sha3/sha3_s390x.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build gc && !purego
6
-// +build gc,!purego
7 6
 
8 7
 package sha3
9 8
 
@@ -49,7 +48,7 @@ type asmState struct {
49 48
 	buf       []byte          // care must be taken to ensure cap(buf) is a multiple of rate
50 49
 	rate      int             // equivalent to block size
51 50
 	storage   [3072]byte      // underlying storage for buf
52
-	outputLen int             // output length if fixed, 0 if not
51
+	outputLen int             // output length for full security
53 52
 	function  code            // KIMD/KLMD function code
54 53
 	state     spongeDirection // whether the sponge is absorbing or squeezing
55 54
 }
@@ -72,8 +71,10 @@ func newAsmState(function code) *asmState {
72 71
 		s.outputLen = 64
73 72
 	case shake_128:
74 73
 		s.rate = 168
74
+		s.outputLen = 32
75 75
 	case shake_256:
76 76
 		s.rate = 136
77
+		s.outputLen = 64
77 78
 	default:
78 79
 		panic("sha3: unrecognized function code")
79 80
 	}
@@ -108,7 +109,7 @@ func (s *asmState) resetBuf() {
108 109
 // It never returns an error.
109 110
 func (s *asmState) Write(b []byte) (int, error) {
110 111
 	if s.state != spongeAbsorbing {
111
-		panic("sha3: write to sponge after read")
112
+		panic("sha3: Write after Read")
112 113
 	}
113 114
 	length := len(b)
114 115
 	for len(b) > 0 {
@@ -192,8 +193,8 @@ func (s *asmState) Read(out []byte) (n int, err error) {
192 193
 // Sum appends the current hash to b and returns the resulting slice.
193 194
 // It does not change the underlying hash state.
194 195
 func (s *asmState) Sum(b []byte) []byte {
195
-	if s.outputLen == 0 {
196
-		panic("sha3: cannot call Sum on SHAKE functions")
196
+	if s.state != spongeAbsorbing {
197
+		panic("sha3: Sum after Read")
197 198
 	}
198 199
 
199 200
 	// Copy the state to preserve the original.

+ 0
- 1
vendor/golang.org/x/crypto/sha3/sha3_s390x.s View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build gc && !purego
6
-// +build gc,!purego
7 6
 
8 7
 #include "textflag.h"
9 8
 

+ 14
- 15
vendor/golang.org/x/crypto/sha3/shake.go View File

@@ -17,26 +17,25 @@ package sha3
17 17
 
18 18
 import (
19 19
 	"encoding/binary"
20
+	"hash"
20 21
 	"io"
21 22
 )
22 23
 
23
-// ShakeHash defines the interface to hash functions that
24
-// support arbitrary-length output.
24
+// ShakeHash defines the interface to hash functions that support
25
+// arbitrary-length output. When used as a plain [hash.Hash], it
26
+// produces minimum-length outputs that provide full-strength generic
27
+// security.
25 28
 type ShakeHash interface {
26
-	// Write absorbs more data into the hash's state. It panics if input is
27
-	// written to it after output has been read from it.
28
-	io.Writer
29
+	hash.Hash
29 30
 
30 31
 	// Read reads more output from the hash; reading affects the hash's
31 32
 	// state. (ShakeHash.Read is thus very different from Hash.Sum)
32
-	// It never returns an error.
33
+	// It never returns an error, but subsequent calls to Write or Sum
34
+	// will panic.
33 35
 	io.Reader
34 36
 
35 37
 	// Clone returns a copy of the ShakeHash in its current state.
36 38
 	Clone() ShakeHash
37
-
38
-	// Reset resets the ShakeHash to its initial state.
39
-	Reset()
40 39
 }
41 40
 
42 41
 // cSHAKE specific context
@@ -81,8 +80,8 @@ func leftEncode(value uint64) []byte {
81 80
 	return b[i-1:]
82 81
 }
83 82
 
84
-func newCShake(N, S []byte, rate int, dsbyte byte) ShakeHash {
85
-	c := cshakeState{state: &state{rate: rate, dsbyte: dsbyte}}
83
+func newCShake(N, S []byte, rate, outputLen int, dsbyte byte) ShakeHash {
84
+	c := cshakeState{state: &state{rate: rate, outputLen: outputLen, dsbyte: dsbyte}}
86 85
 
87 86
 	// leftEncode returns max 9 bytes
88 87
 	c.initBlock = make([]byte, 0, 9*2+len(N)+len(S))
@@ -119,7 +118,7 @@ func NewShake128() ShakeHash {
119 118
 	if h := newShake128Asm(); h != nil {
120 119
 		return h
121 120
 	}
122
-	return &state{rate: rate128, dsbyte: dsbyteShake}
121
+	return &state{rate: rate128, outputLen: 32, dsbyte: dsbyteShake}
123 122
 }
124 123
 
125 124
 // NewShake256 creates a new SHAKE256 variable-output-length ShakeHash.
@@ -129,7 +128,7 @@ func NewShake256() ShakeHash {
129 128
 	if h := newShake256Asm(); h != nil {
130 129
 		return h
131 130
 	}
132
-	return &state{rate: rate256, dsbyte: dsbyteShake}
131
+	return &state{rate: rate256, outputLen: 64, dsbyte: dsbyteShake}
133 132
 }
134 133
 
135 134
 // NewCShake128 creates a new instance of cSHAKE128 variable-output-length ShakeHash,
@@ -142,7 +141,7 @@ func NewCShake128(N, S []byte) ShakeHash {
142 141
 	if len(N) == 0 && len(S) == 0 {
143 142
 		return NewShake128()
144 143
 	}
145
-	return newCShake(N, S, rate128, dsbyteCShake)
144
+	return newCShake(N, S, rate128, 32, dsbyteCShake)
146 145
 }
147 146
 
148 147
 // NewCShake256 creates a new instance of cSHAKE256 variable-output-length ShakeHash,
@@ -155,7 +154,7 @@ func NewCShake256(N, S []byte) ShakeHash {
155 154
 	if len(N) == 0 && len(S) == 0 {
156 155
 		return NewShake256()
157 156
 	}
158
-	return newCShake(N, S, rate256, dsbyteCShake)
157
+	return newCShake(N, S, rate256, 64, dsbyteCShake)
159 158
 }
160 159
 
161 160
 // ShakeSum128 writes an arbitrary-length digest of data into hash.

+ 0
- 1
vendor/golang.org/x/crypto/sha3/shake_generic.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build !gc || purego || !s390x
6
-// +build !gc purego !s390x
7 6
 
8 7
 package sha3
9 8
 

+ 0
- 1
vendor/golang.org/x/crypto/sha3/xor.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build (!amd64 && !386 && !ppc64le) || purego
6
-// +build !amd64,!386,!ppc64le purego
7 6
 
8 7
 package sha3
9 8
 

+ 0
- 2
vendor/golang.org/x/crypto/sha3/xor_unaligned.go View File

@@ -3,8 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build (amd64 || 386 || ppc64le) && !purego
6
-// +build amd64 386 ppc64le
7
-// +build !purego
8 6
 
9 7
 package sha3
10 8
 

+ 0
- 1
vendor/golang.org/x/sys/cpu/asm_aix_ppc64.s View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build gc
6
-// +build gc
7 6
 
8 7
 #include "textflag.h"
9 8
 

+ 4
- 1
vendor/golang.org/x/sys/cpu/cpu.go View File

@@ -38,7 +38,7 @@ var X86 struct {
38 38
 	HasAVX512F          bool // Advanced vector extension 512 Foundation Instructions
39 39
 	HasAVX512CD         bool // Advanced vector extension 512 Conflict Detection Instructions
40 40
 	HasAVX512ER         bool // Advanced vector extension 512 Exponential and Reciprocal Instructions
41
-	HasAVX512PF         bool // Advanced vector extension 512 Prefetch Instructions Instructions
41
+	HasAVX512PF         bool // Advanced vector extension 512 Prefetch Instructions
42 42
 	HasAVX512VL         bool // Advanced vector extension 512 Vector Length Extensions
43 43
 	HasAVX512BW         bool // Advanced vector extension 512 Byte and Word Instructions
44 44
 	HasAVX512DQ         bool // Advanced vector extension 512 Doubleword and Quadword Instructions
@@ -54,6 +54,9 @@ var X86 struct {
54 54
 	HasAVX512VBMI2      bool // Advanced vector extension 512 Vector Byte Manipulation Instructions 2
55 55
 	HasAVX512BITALG     bool // Advanced vector extension 512 Bit Algorithms
56 56
 	HasAVX512BF16       bool // Advanced vector extension 512 BFloat16 Instructions
57
+	HasAMXTile          bool // Advanced Matrix Extension Tile instructions
58
+	HasAMXInt8          bool // Advanced Matrix Extension Int8 instructions
59
+	HasAMXBF16          bool // Advanced Matrix Extension BFloat16 instructions
57 60
 	HasBMI1             bool // Bit manipulation instruction set 1
58 61
 	HasBMI2             bool // Bit manipulation instruction set 2
59 62
 	HasCX16             bool // Compare and exchange 16 Bytes

+ 0
- 1
vendor/golang.org/x/sys/cpu/cpu_aix.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build aix
6
-// +build aix
7 6
 
8 7
 package cpu
9 8
 

+ 0
- 1
vendor/golang.org/x/sys/cpu/cpu_arm64.s View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build gc
6
-// +build gc
7 6
 
8 7
 #include "textflag.h"
9 8
 

+ 0
- 1
vendor/golang.org/x/sys/cpu/cpu_gc_arm64.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build gc
6
-// +build gc
7 6
 
8 7
 package cpu
9 8
 

+ 0
- 1
vendor/golang.org/x/sys/cpu/cpu_gc_s390x.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build gc
6
-// +build gc
7 6
 
8 7
 package cpu
9 8
 

+ 0
- 2
vendor/golang.org/x/sys/cpu/cpu_gc_x86.go View File

@@ -3,8 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build (386 || amd64 || amd64p32) && gc
6
-// +build 386 amd64 amd64p32
7
-// +build gc
8 6
 
9 7
 package cpu
10 8
 

+ 0
- 1
vendor/golang.org/x/sys/cpu/cpu_gccgo_arm64.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build gccgo
6
-// +build gccgo
7 6
 
8 7
 package cpu
9 8
 

+ 0
- 1
vendor/golang.org/x/sys/cpu/cpu_gccgo_s390x.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build gccgo
6
-// +build gccgo
7 6
 
8 7
 package cpu
9 8
 

+ 0
- 2
vendor/golang.org/x/sys/cpu/cpu_gccgo_x86.c View File

@@ -3,8 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build (386 || amd64 || amd64p32) && gccgo
6
-// +build 386 amd64 amd64p32
7
-// +build gccgo
8 6
 
9 7
 #include <cpuid.h>
10 8
 #include <stdint.h>

+ 0
- 2
vendor/golang.org/x/sys/cpu/cpu_gccgo_x86.go View File

@@ -3,8 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build (386 || amd64 || amd64p32) && gccgo
6
-// +build 386 amd64 amd64p32
7
-// +build gccgo
8 6
 
9 7
 package cpu
10 8
 

+ 0
- 1
vendor/golang.org/x/sys/cpu/cpu_linux.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build !386 && !amd64 && !amd64p32 && !arm64
6
-// +build !386,!amd64,!amd64p32,!arm64
7 6
 
8 7
 package cpu
9 8
 

+ 0
- 2
vendor/golang.org/x/sys/cpu/cpu_linux_mips64x.go View File

@@ -3,8 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build linux && (mips64 || mips64le)
6
-// +build linux
7
-// +build mips64 mips64le
8 6
 
9 7
 package cpu
10 8
 

+ 0
- 1
vendor/golang.org/x/sys/cpu/cpu_linux_noinit.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build linux && !arm && !arm64 && !mips64 && !mips64le && !ppc64 && !ppc64le && !s390x
6
-// +build linux,!arm,!arm64,!mips64,!mips64le,!ppc64,!ppc64le,!s390x
7 6
 
8 7
 package cpu
9 8
 

+ 0
- 2
vendor/golang.org/x/sys/cpu/cpu_linux_ppc64x.go View File

@@ -3,8 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build linux && (ppc64 || ppc64le)
6
-// +build linux
7
-// +build ppc64 ppc64le
8 6
 
9 7
 package cpu
10 8
 

+ 0
- 1
vendor/golang.org/x/sys/cpu/cpu_loong64.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build loong64
6
-// +build loong64
7 6
 
8 7
 package cpu
9 8
 

+ 0
- 1
vendor/golang.org/x/sys/cpu/cpu_mips64x.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build mips64 || mips64le
6
-// +build mips64 mips64le
7 6
 
8 7
 package cpu
9 8
 

+ 0
- 1
vendor/golang.org/x/sys/cpu/cpu_mipsx.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build mips || mipsle
6
-// +build mips mipsle
7 6
 
8 7
 package cpu
9 8
 

+ 0
- 1
vendor/golang.org/x/sys/cpu/cpu_other_arm.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build !linux && arm
6
-// +build !linux,arm
7 6
 
8 7
 package cpu
9 8
 

+ 0
- 1
vendor/golang.org/x/sys/cpu/cpu_other_arm64.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build !linux && !netbsd && !openbsd && arm64
6
-// +build !linux,!netbsd,!openbsd,arm64
7 6
 
8 7
 package cpu
9 8
 

+ 0
- 2
vendor/golang.org/x/sys/cpu/cpu_other_mips64x.go View File

@@ -3,8 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build !linux && (mips64 || mips64le)
6
-// +build !linux
7
-// +build mips64 mips64le
8 6
 
9 7
 package cpu
10 8
 

+ 0
- 3
vendor/golang.org/x/sys/cpu/cpu_other_ppc64x.go View File

@@ -3,9 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build !aix && !linux && (ppc64 || ppc64le)
6
-// +build !aix
7
-// +build !linux
8
-// +build ppc64 ppc64le
9 6
 
10 7
 package cpu
11 8
 

+ 0
- 1
vendor/golang.org/x/sys/cpu/cpu_other_riscv64.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build !linux && riscv64
6
-// +build !linux,riscv64
7 6
 
8 7
 package cpu
9 8
 

+ 0
- 1
vendor/golang.org/x/sys/cpu/cpu_ppc64x.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build ppc64 || ppc64le
6
-// +build ppc64 ppc64le
7 6
 
8 7
 package cpu
9 8
 

+ 1
- 2
vendor/golang.org/x/sys/cpu/cpu_riscv64.go View File

@@ -3,10 +3,9 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build riscv64
6
-// +build riscv64
7 6
 
8 7
 package cpu
9 8
 
10
-const cacheLineSize = 32
9
+const cacheLineSize = 64
11 10
 
12 11
 func initOptions() {}

+ 0
- 1
vendor/golang.org/x/sys/cpu/cpu_s390x.s View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build gc
6
-// +build gc
7 6
 
8 7
 #include "textflag.h"
9 8
 

+ 0
- 1
vendor/golang.org/x/sys/cpu/cpu_wasm.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build wasm
6
-// +build wasm
7 6
 
8 7
 package cpu
9 8
 

+ 7
- 1
vendor/golang.org/x/sys/cpu/cpu_x86.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build 386 || amd64 || amd64p32
6
-// +build 386 amd64 amd64p32
7 6
 
8 7
 package cpu
9 8
 
@@ -37,6 +36,9 @@ func initOptions() {
37 36
 		{Name: "avx512vbmi2", Feature: &X86.HasAVX512VBMI2},
38 37
 		{Name: "avx512bitalg", Feature: &X86.HasAVX512BITALG},
39 38
 		{Name: "avx512bf16", Feature: &X86.HasAVX512BF16},
39
+		{Name: "amxtile", Feature: &X86.HasAMXTile},
40
+		{Name: "amxint8", Feature: &X86.HasAMXInt8},
41
+		{Name: "amxbf16", Feature: &X86.HasAMXBF16},
40 42
 		{Name: "bmi1", Feature: &X86.HasBMI1},
41 43
 		{Name: "bmi2", Feature: &X86.HasBMI2},
42 44
 		{Name: "cx16", Feature: &X86.HasCX16},
@@ -138,6 +140,10 @@ func archInit() {
138 140
 		eax71, _, _, _ := cpuid(7, 1)
139 141
 		X86.HasAVX512BF16 = isSet(5, eax71)
140 142
 	}
143
+
144
+	X86.HasAMXTile = isSet(24, edx7)
145
+	X86.HasAMXInt8 = isSet(25, edx7)
146
+	X86.HasAMXBF16 = isSet(22, edx7)
141 147
 }
142 148
 
143 149
 func isSet(bitpos uint, value uint32) bool {

+ 0
- 2
vendor/golang.org/x/sys/cpu/cpu_x86.s View File

@@ -3,8 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build (386 || amd64 || amd64p32) && gc
6
-// +build 386 amd64 amd64p32
7
-// +build gc
8 6
 
9 7
 #include "textflag.h"
10 8
 

+ 0
- 1
vendor/golang.org/x/sys/cpu/endian_big.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build armbe || arm64be || m68k || mips || mips64 || mips64p32 || ppc || ppc64 || s390 || s390x || shbe || sparc || sparc64
6
-// +build armbe arm64be m68k mips mips64 mips64p32 ppc ppc64 s390 s390x shbe sparc sparc64
7 6
 
8 7
 package cpu
9 8
 

+ 1
- 2
vendor/golang.org/x/sys/cpu/endian_little.go View File

@@ -2,8 +2,7 @@
2 2
 // Use of this source code is governed by a BSD-style
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-//go:build 386 || amd64 || amd64p32 || alpha || arm || arm64 || loong64 || mipsle || mips64le || mips64p32le || nios2 || ppc64le || riscv || riscv64 || sh
6
-// +build 386 amd64 amd64p32 alpha arm arm64 loong64 mipsle mips64le mips64p32le nios2 ppc64le riscv riscv64 sh
5
+//go:build 386 || amd64 || amd64p32 || alpha || arm || arm64 || loong64 || mipsle || mips64le || mips64p32le || nios2 || ppc64le || riscv || riscv64 || sh || wasm
7 6
 
8 7
 package cpu
9 8
 

+ 2
- 2
vendor/golang.org/x/sys/cpu/hwcap_linux.go View File

@@ -5,7 +5,7 @@
5 5
 package cpu
6 6
 
7 7
 import (
8
-	"io/ioutil"
8
+	"os"
9 9
 )
10 10
 
11 11
 const (
@@ -39,7 +39,7 @@ func readHWCAP() error {
39 39
 		return nil
40 40
 	}
41 41
 
42
-	buf, err := ioutil.ReadFile(procAuxv)
42
+	buf, err := os.ReadFile(procAuxv)
43 43
 	if err != nil {
44 44
 		// e.g. on android /proc/self/auxv is not accessible, so silently
45 45
 		// ignore the error and leave Initialized = false. On some

+ 0
- 1
vendor/golang.org/x/sys/cpu/proc_cpuinfo_linux.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build linux && arm64
6
-// +build linux,arm64
7 6
 
8 7
 package cpu
9 8
 

+ 0
- 1
vendor/golang.org/x/sys/cpu/runtime_auxv_go121.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build go1.21
6
-// +build go1.21
7 6
 
8 7
 package cpu
9 8
 

+ 0
- 1
vendor/golang.org/x/sys/cpu/syscall_aix_gccgo.go View File

@@ -9,7 +9,6 @@
9 9
 // gccgo's libgo and thus must not used a CGo method.
10 10
 
11 11
 //go:build aix && gccgo
12
-// +build aix,gccgo
13 12
 
14 13
 package cpu
15 14
 

+ 0
- 1
vendor/golang.org/x/sys/cpu/syscall_aix_ppc64_gc.go View File

@@ -7,7 +7,6 @@
7 7
 // (See golang.org/issue/32102)
8 8
 
9 9
 //go:build aix && ppc64 && gc
10
-// +build aix,ppc64,gc
11 10
 
12 11
 package cpu
13 12
 

+ 0
- 30
vendor/golang.org/x/sys/internal/unsafeheader/unsafeheader.go View File

@@ -1,30 +0,0 @@
1
-// Copyright 2020 The Go Authors. All rights reserved.
2
-// Use of this source code is governed by a BSD-style
3
-// license that can be found in the LICENSE file.
4
-
5
-// Package unsafeheader contains header declarations for the Go runtime's
6
-// slice and string implementations.
7
-//
8
-// This package allows x/sys to use types equivalent to
9
-// reflect.SliceHeader and reflect.StringHeader without introducing
10
-// a dependency on the (relatively heavy) "reflect" package.
11
-package unsafeheader
12
-
13
-import (
14
-	"unsafe"
15
-)
16
-
17
-// Slice is the runtime representation of a slice.
18
-// It cannot be used safely or portably and its representation may change in a later release.
19
-type Slice struct {
20
-	Data unsafe.Pointer
21
-	Len  int
22
-	Cap  int
23
-}
24
-
25
-// String is the runtime representation of a string.
26
-// It cannot be used safely or portably and its representation may change in a later release.
27
-type String struct {
28
-	Data unsafe.Pointer
29
-	Len  int
30
-}

+ 0
- 1
vendor/golang.org/x/sys/plan9/pwd_go15_plan9.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build go1.5
6
-// +build go1.5
7 6
 
8 7
 package plan9
9 8
 

+ 0
- 1
vendor/golang.org/x/sys/plan9/pwd_plan9.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build !go1.5
6
-// +build !go1.5
7 6
 
8 7
 package plan9
9 8
 

+ 0
- 1
vendor/golang.org/x/sys/plan9/race.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build plan9 && race
6
-// +build plan9,race
7 6
 
8 7
 package plan9
9 8
 

+ 0
- 1
vendor/golang.org/x/sys/plan9/race0.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build plan9 && !race
6
-// +build plan9,!race
7 6
 
8 7
 package plan9
9 8
 

+ 0
- 1
vendor/golang.org/x/sys/plan9/str.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build plan9
6
-// +build plan9
7 6
 
8 7
 package plan9
9 8
 

+ 0
- 1
vendor/golang.org/x/sys/plan9/syscall.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build plan9
6
-// +build plan9
7 6
 
8 7
 // Package plan9 contains an interface to the low-level operating system
9 8
 // primitives. OS details vary depending on the underlying system, and

+ 0
- 1
vendor/golang.org/x/sys/plan9/zsyscall_plan9_386.go View File

@@ -2,7 +2,6 @@
2 2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3 3
 
4 4
 //go:build plan9 && 386
5
-// +build plan9,386
6 5
 
7 6
 package plan9
8 7
 

+ 0
- 1
vendor/golang.org/x/sys/plan9/zsyscall_plan9_amd64.go View File

@@ -2,7 +2,6 @@
2 2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3 3
 
4 4
 //go:build plan9 && amd64
5
-// +build plan9,amd64
6 5
 
7 6
 package plan9
8 7
 

+ 0
- 1
vendor/golang.org/x/sys/plan9/zsyscall_plan9_arm.go View File

@@ -2,7 +2,6 @@
2 2
 // Code generated by the command above; see README.md. DO NOT EDIT.
3 3
 
4 4
 //go:build plan9 && arm
5
-// +build plan9,arm
6 5
 
7 6
 package plan9
8 7
 

+ 0
- 2
vendor/golang.org/x/sys/unix/aliases.go View File

@@ -3,8 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build (aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos) && go1.9
6
-// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos
7
-// +build go1.9
8 6
 
9 7
 package unix
10 8
 

+ 0
- 1
vendor/golang.org/x/sys/unix/asm_aix_ppc64.s View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build gc
6
-// +build gc
7 6
 
8 7
 #include "textflag.h"
9 8
 

+ 0
- 2
vendor/golang.org/x/sys/unix/asm_bsd_386.s View File

@@ -3,8 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build (freebsd || netbsd || openbsd) && gc
6
-// +build freebsd netbsd openbsd
7
-// +build gc
8 6
 
9 7
 #include "textflag.h"
10 8
 

+ 0
- 2
vendor/golang.org/x/sys/unix/asm_bsd_amd64.s View File

@@ -3,8 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build (darwin || dragonfly || freebsd || netbsd || openbsd) && gc
6
-// +build darwin dragonfly freebsd netbsd openbsd
7
-// +build gc
8 6
 
9 7
 #include "textflag.h"
10 8
 

+ 0
- 2
vendor/golang.org/x/sys/unix/asm_bsd_arm.s View File

@@ -3,8 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build (freebsd || netbsd || openbsd) && gc
6
-// +build freebsd netbsd openbsd
7
-// +build gc
8 6
 
9 7
 #include "textflag.h"
10 8
 

+ 0
- 2
vendor/golang.org/x/sys/unix/asm_bsd_arm64.s View File

@@ -3,8 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build (darwin || freebsd || netbsd || openbsd) && gc
6
-// +build darwin freebsd netbsd openbsd
7
-// +build gc
8 6
 
9 7
 #include "textflag.h"
10 8
 

+ 0
- 2
vendor/golang.org/x/sys/unix/asm_bsd_ppc64.s View File

@@ -3,8 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build (darwin || freebsd || netbsd || openbsd) && gc
6
-// +build darwin freebsd netbsd openbsd
7
-// +build gc
8 6
 
9 7
 #include "textflag.h"
10 8
 

+ 0
- 2
vendor/golang.org/x/sys/unix/asm_bsd_riscv64.s View File

@@ -3,8 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build (darwin || freebsd || netbsd || openbsd) && gc
6
-// +build darwin freebsd netbsd openbsd
7
-// +build gc
8 6
 
9 7
 #include "textflag.h"
10 8
 

+ 0
- 1
vendor/golang.org/x/sys/unix/asm_linux_386.s View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build gc
6
-// +build gc
7 6
 
8 7
 #include "textflag.h"
9 8
 

+ 0
- 1
vendor/golang.org/x/sys/unix/asm_linux_amd64.s View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build gc
6
-// +build gc
7 6
 
8 7
 #include "textflag.h"
9 8
 

+ 0
- 1
vendor/golang.org/x/sys/unix/asm_linux_arm.s View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build gc
6
-// +build gc
7 6
 
8 7
 #include "textflag.h"
9 8
 

+ 0
- 3
vendor/golang.org/x/sys/unix/asm_linux_arm64.s View File

@@ -3,9 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build linux && arm64 && gc
6
-// +build linux
7
-// +build arm64
8
-// +build gc
9 6
 
10 7
 #include "textflag.h"
11 8
 

+ 0
- 3
vendor/golang.org/x/sys/unix/asm_linux_loong64.s View File

@@ -3,9 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build linux && loong64 && gc
6
-// +build linux
7
-// +build loong64
8
-// +build gc
9 6
 
10 7
 #include "textflag.h"
11 8
 

+ 0
- 3
vendor/golang.org/x/sys/unix/asm_linux_mips64x.s View File

@@ -3,9 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build linux && (mips64 || mips64le) && gc
6
-// +build linux
7
-// +build mips64 mips64le
8
-// +build gc
9 6
 
10 7
 #include "textflag.h"
11 8
 

+ 0
- 3
vendor/golang.org/x/sys/unix/asm_linux_mipsx.s View File

@@ -3,9 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build linux && (mips || mipsle) && gc
6
-// +build linux
7
-// +build mips mipsle
8
-// +build gc
9 6
 
10 7
 #include "textflag.h"
11 8
 

+ 0
- 3
vendor/golang.org/x/sys/unix/asm_linux_ppc64x.s View File

@@ -3,9 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build linux && (ppc64 || ppc64le) && gc
6
-// +build linux
7
-// +build ppc64 ppc64le
8
-// +build gc
9 6
 
10 7
 #include "textflag.h"
11 8
 

+ 0
- 2
vendor/golang.org/x/sys/unix/asm_linux_riscv64.s View File

@@ -3,8 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build riscv64 && gc
6
-// +build riscv64
7
-// +build gc
8 6
 
9 7
 #include "textflag.h"
10 8
 

+ 0
- 3
vendor/golang.org/x/sys/unix/asm_linux_s390x.s View File

@@ -3,9 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build linux && s390x && gc
6
-// +build linux
7
-// +build s390x
8
-// +build gc
9 6
 
10 7
 #include "textflag.h"
11 8
 

+ 0
- 1
vendor/golang.org/x/sys/unix/asm_openbsd_mips64.s View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build gc
6
-// +build gc
7 6
 
8 7
 #include "textflag.h"
9 8
 

+ 0
- 1
vendor/golang.org/x/sys/unix/asm_solaris_amd64.s View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build gc
6
-// +build gc
7 6
 
8 7
 #include "textflag.h"
9 8
 

+ 0
- 3
vendor/golang.org/x/sys/unix/asm_zos_s390x.s View File

@@ -3,9 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build zos && s390x && gc
6
-// +build zos
7
-// +build s390x
8
-// +build gc
9 6
 
10 7
 #include "textflag.h"
11 8
 

+ 0
- 1
vendor/golang.org/x/sys/unix/cap_freebsd.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build freebsd
6
-// +build freebsd
7 6
 
8 7
 package unix
9 8
 

+ 0
- 1
vendor/golang.org/x/sys/unix/constants.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos
6
-// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos
7 6
 
8 7
 package unix
9 8
 

+ 0
- 1
vendor/golang.org/x/sys/unix/dev_aix_ppc.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build aix && ppc
6
-// +build aix,ppc
7 6
 
8 7
 // Functions to access/create device major and minor numbers matching the
9 8
 // encoding used by AIX.

+ 0
- 1
vendor/golang.org/x/sys/unix/dev_aix_ppc64.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build aix && ppc64
6
-// +build aix,ppc64
7 6
 
8 7
 // Functions to access/create device major and minor numbers matching the
9 8
 // encoding used AIX.

+ 0
- 1
vendor/golang.org/x/sys/unix/dev_zos.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build zos && s390x
6
-// +build zos,s390x
7 6
 
8 7
 // Functions to access/create device major and minor numbers matching the
9 8
 // encoding used by z/OS.

+ 0
- 1
vendor/golang.org/x/sys/unix/dirent.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos
6
-// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos
7 6
 
8 7
 package unix
9 8
 

+ 0
- 1
vendor/golang.org/x/sys/unix/endian_big.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 //
5 5
 //go:build armbe || arm64be || m68k || mips || mips64 || mips64p32 || ppc || ppc64 || s390 || s390x || shbe || sparc || sparc64
6
-// +build armbe arm64be m68k mips mips64 mips64p32 ppc ppc64 s390 s390x shbe sparc sparc64
7 6
 
8 7
 package unix
9 8
 

+ 0
- 1
vendor/golang.org/x/sys/unix/endian_little.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 //
5 5
 //go:build 386 || amd64 || amd64p32 || alpha || arm || arm64 || loong64 || mipsle || mips64le || mips64p32le || nios2 || ppc64le || riscv || riscv64 || sh
6
-// +build 386 amd64 amd64p32 alpha arm arm64 loong64 mipsle mips64le mips64p32le nios2 ppc64le riscv riscv64 sh
7 6
 
8 7
 package unix
9 8
 

+ 0
- 1
vendor/golang.org/x/sys/unix/env_unix.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos
6
-// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos
7 6
 
8 7
 // Unix environment variables.
9 8
 

+ 0
- 1
vendor/golang.org/x/sys/unix/epoll_zos.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build zos && s390x
6
-// +build zos,s390x
7 6
 
8 7
 package unix
9 8
 

+ 1
- 2
vendor/golang.org/x/sys/unix/fcntl.go View File

@@ -2,8 +2,7 @@
2 2
 // Use of this source code is governed by a BSD-style
3 3
 // license that can be found in the LICENSE file.
4 4
 
5
-//go:build dragonfly || freebsd || linux || netbsd || openbsd
6
-// +build dragonfly freebsd linux netbsd openbsd
5
+//go:build dragonfly || freebsd || linux || netbsd
7 6
 
8 7
 package unix
9 8
 

+ 0
- 1
vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build (linux && 386) || (linux && arm) || (linux && mips) || (linux && mipsle) || (linux && ppc)
6
-// +build linux,386 linux,arm linux,mips linux,mipsle linux,ppc
7 6
 
8 7
 package unix
9 8
 

+ 0
- 1
vendor/golang.org/x/sys/unix/fdset.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos
6
-// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos
7 6
 
8 7
 package unix
9 8
 

+ 0
- 1
vendor/golang.org/x/sys/unix/fstatfs_zos.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build zos && s390x
6
-// +build zos,s390x
7 6
 
8 7
 package unix
9 8
 

+ 0
- 1
vendor/golang.org/x/sys/unix/gccgo.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build gccgo && !aix && !hurd
6
-// +build gccgo,!aix,!hurd
7 6
 
8 7
 package unix
9 8
 

+ 0
- 1
vendor/golang.org/x/sys/unix/gccgo_c.c View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build gccgo && !aix && !hurd
6
-// +build gccgo,!aix,!hurd
7 6
 
8 7
 #include <errno.h>
9 8
 #include <stdint.h>

+ 0
- 1
vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build gccgo && linux && amd64
6
-// +build gccgo,linux,amd64
7 6
 
8 7
 package unix
9 8
 

+ 0
- 1
vendor/golang.org/x/sys/unix/ifreq_linux.go View File

@@ -3,7 +3,6 @@
3 3
 // license that can be found in the LICENSE file.
4 4
 
5 5
 //go:build linux
6
-// +build linux
7 6
 
8 7
 package unix
9 8
 

+ 0
- 0
vendor/golang.org/x/sys/unix/ioctl_linux.go View File


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save