forked from minio/kes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fips: simplify TLS configuration (minio#241)
This commit adds two new functions to the `fips` package: - `TLSCiphers()` - `TLSCurveIDs()` The first one returns a list of supported TLS cipher suite IDs. The list will differ depending upon running in FIPS-mode or not. However, Go's TLS stack will still negotiate the "best" cipher for the particular connection. The second one returns a list of supported elliptic curve IDs used by the TLS stack for ECDHE key exchange. The curve IDs are returned in preference order and the Go TLS stack should choose the first curve supported by the client. In case of TLS 1.3, the curve used by the client may be used directly (if supported) since one-way roundtrip. The P-384 and P-521 curves are enabled now since the Go standard library supports constant time implementations for these curves. Signed-off-by: Andreas Auernhammer <[email protected]>
- Loading branch information
Showing
2 changed files
with
52 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters