Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caddy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
caddy
Commits
703cf7bf
Commit
703cf7bf
authored
Feb 09, 2018
by
elcore
Committed by
Matt Holt
Feb 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vendor: delete github.com/codahale/aesnicheck in favor of cpuid (#2020)
parent
3e00e18a
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
4 additions
and
87 deletions
+4
-87
caddytls/config.go
caddytls/config.go
+2
-2
caddytls/config_test.go
caddytls/config_test.go
+2
-2
vendor/github.com/codahale/aesnicheck/LICENSE
vendor/github.com/codahale/aesnicheck/LICENSE
+0
-21
vendor/github.com/codahale/aesnicheck/asm_amd64.s
vendor/github.com/codahale/aesnicheck/asm_amd64.s
+0
-9
vendor/github.com/codahale/aesnicheck/check_asm.go
vendor/github.com/codahale/aesnicheck/check_asm.go
+0
-6
vendor/github.com/codahale/aesnicheck/check_generic.go
vendor/github.com/codahale/aesnicheck/check_generic.go
+0
-8
vendor/github.com/codahale/aesnicheck/cmd/aesnicheck/aesnicheck.go
...thub.com/codahale/aesnicheck/cmd/aesnicheck/aesnicheck.go
+0
-22
vendor/github.com/codahale/aesnicheck/docs.go
vendor/github.com/codahale/aesnicheck/docs.go
+0
-9
vendor/manifest
vendor/manifest
+0
-8
No files found.
caddytls/config.go
View file @
703cf7bf
...
...
@@ -23,7 +23,7 @@ import (
"net/url"
"strings"
"github.com/
codahale/aesnicheck
"
"github.com/
klauspost/cpuid
"
"github.com/mholt/caddy"
"github.com/xenolf/lego/acme"
)
...
...
@@ -505,7 +505,7 @@ var defaultCiphersNonAESNI = []uint16{
//
// See https://github.com/mholt/caddy/issues/1674
func
getPreferredDefaultCiphers
()
[]
uint16
{
if
aesnicheck
.
HasAESNI
()
{
if
cpuid
.
CPU
.
AesNi
()
{
return
defaultCiphers
}
...
...
caddytls/config_test.go
View file @
703cf7bf
...
...
@@ -21,7 +21,7 @@ import (
"reflect"
"testing"
"github.com/
codahale/aesnicheck
"
"github.com/
klauspost/cpuid
"
)
func
TestConvertTLSConfigProtocolVersions
(
t
*
testing
.
T
)
{
...
...
@@ -98,7 +98,7 @@ func TestConvertTLSConfigCipherSuites(t *testing.T) {
func
TestGetPreferredDefaultCiphers
(
t
*
testing
.
T
)
{
expectedCiphers
:=
defaultCiphers
if
!
aesnicheck
.
HasAESNI
()
{
if
!
cpuid
.
CPU
.
AesNi
()
{
expectedCiphers
=
defaultCiphersNonAESNI
}
...
...
vendor/github.com/codahale/aesnicheck/LICENSE
deleted
100644 → 0
View file @
3e00e18a
The MIT License (MIT)
Copyright (c) 2014 Coda Hale
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
vendor/github.com/codahale/aesnicheck/asm_amd64.s
deleted
100644 → 0
View file @
3e00e18a
//
func
HasAESNI
()
bool
TEXT
·
HasAESNI
(
SB
),$0
XORQ
AX
,
AX
INCL
AX
CPUID
SHRQ
$
25
,
CX
ANDQ
$
1
,
CX
MOVB
CX
,
ret
+
0
(
FP
)
RET
vendor/github.com/codahale/aesnicheck/check_asm.go
deleted
100644 → 0
View file @
3e00e18a
// +build amd64
package
aesnicheck
// HasAESNI returns whether AES-NI is supported by the CPU.
func
HasAESNI
()
bool
vendor/github.com/codahale/aesnicheck/check_generic.go
deleted
100644 → 0
View file @
3e00e18a
// +build !amd64
package
aesnicheck
// HasAESNI returns whether AES-NI is supported by the CPU.
func
HasAESNI
()
bool
{
return
false
}
vendor/github.com/codahale/aesnicheck/cmd/aesnicheck/aesnicheck.go
deleted
100644 → 0
View file @
3e00e18a
// Command aesnicheck queries the CPU for AES-NI support. If AES-NI is supported,
// aesnicheck will print "supported" and exit with a status of 0. If AES-NI is
// not supported, aesnicheck will print "unsupported" and exit with a status of
// -1.
package
main
import
(
"fmt"
"os"
"github.com/codahale/aesnicheck"
)
func
main
()
{
if
aesnicheck
.
HasAESNI
()
{
fmt
.
Println
(
"supported"
)
os
.
Exit
(
0
)
}
else
{
fmt
.
Println
(
"unsupported"
)
os
.
Exit
(
-
1
)
}
}
vendor/github.com/codahale/aesnicheck/docs.go
deleted
100644 → 0
View file @
3e00e18a
// Package aesnicheck provides a simple check to see if crypto/aes is using
// AES-NI instructions or if the AES transform is being done in software. AES-NI
// is constant-time, which makes it impervious to cache-level timing attacks. For
// security-conscious deployments on public cloud infrastructure (Amazon EC2,
// Google Compute Engine, Microsoft Azure, etc.) this may be critical.
//
// See http://eprint.iacr.org/2014/248 for details on cross-VM timing attacks on
// AES keys.
package
aesnicheck
vendor/manifest
View file @
703cf7bf
...
...
@@ -34,14 +34,6 @@
"branch": "master",
"notests": true
},
{
"importpath": "github.com/codahale/aesnicheck",
"repository": "https://github.com/codahale/aesnicheck",
"vcs": "git",
"revision": "349fcc471aaccc29cd074e1275f1a494323826cd",
"branch": "master",
"notests": true
},
{
"importpath": "github.com/dustin/go-humanize",
"repository": "https://github.com/dustin/go-humanize",
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment