Add erasure and compression self-tests (#11918)

Ensure that we don't use potentially broken algorithms for critical functions, whether it be a runtime problem or implementation problem for a specific platform.
This commit is contained in:
Klaus Post
2021-03-31 18:11:37 +02:00
committed by GitHub
parent 6b484f45c6
commit 0d8c74358d
4 changed files with 116 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ package cmd
import (
"crypto/x509"
"errors"
"net/http"
"os"
"sync"
@@ -295,6 +296,8 @@ var (
// Add new variable global values here.
)
var errSelfTestFailure = errors.New("self test failed. unsafe to start server")
// Returns minio global information, as a key value map.
// returned list of global values is not an exhaustive
// list. Feel free to add new relevant fields.