mirror of
https://github.com/minio/minio.git
synced 2025-11-28 13:09:09 -05:00
fips: always enable AES in FIPS mode when using madmin (#11732)
This commit adds FIPS-specifc build tags to the madmin package. When madmin is compiled with `--tags "fips"` it will always use AES-GCM for encryption - not just when an optimized AES implementation is available.
This commit is contained in:
committed by
GitHub
parent
64662a49ff
commit
ba6930bb13
@@ -51,7 +51,7 @@ func EncryptData(password string, data []byte) ([]byte, error) {
|
||||
err error
|
||||
stream *sio.Stream
|
||||
)
|
||||
if sioutil.NativeAES() { // Only use AES-GCM if we can use an optimized implementation
|
||||
if useAES() { // Only use AES-GCM if we can use an optimized implementation
|
||||
id = aesGcm
|
||||
stream, err = sio.AES_256_GCM.Stream(key)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user