storj.io/minio@v0.0.0-20230509071714-0cbc90f649b1/pkg/fips/no_fips.go (about) 1 // MinIO Cloud Storage, (C) 2021 MinIO, Inc. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 //go:build !fips 16 // +build !fips 17 18 package fips 19 20 import ( 21 "crypto/tls" 22 23 "github.com/minio/sio" 24 ) 25 26 var enabled = false 27 28 func cipherSuitesDARE() []byte { 29 return []byte{sio.AES_256_GCM, sio.CHACHA20_POLY1305} 30 } 31 32 func cipherSuitesTLS() []uint16 { 33 return []uint16{ 34 tls.TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305, 35 tls.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305, 36 tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, 37 tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, 38 tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, 39 tls.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, 40 } 41 } 42 43 func ellipticCurvesTLS() []tls.CurveID { 44 return []tls.CurveID{tls.X25519, tls.CurveP256} 45 }