mirror of
https://github.com/minio/minio.git
synced 2025-11-10 05:59:43 -05:00
crypto: add a basic KMS implementation (#6161)
This commit adds a basic KMS implementation for an operator-specified SSE-S3 master key. The master key is wrapped as KMS such that using SSE-S3 with master key and SSE-S3 with KMS can use the same code. Bindings for a remote / true KMS (like hashicorp vault) will be added later on.
This commit is contained in:
committed by
kannappanr
parent
0c9f4c9092
commit
6c93c60424
@@ -28,3 +28,9 @@ var (
|
||||
// is not supported.
|
||||
ErrInvalidEncryptionMethod = errors.New("The encryption method is not supported")
|
||||
)
|
||||
|
||||
var (
|
||||
// errOutOfEntropy indicates that the a source of randomness (PRNG) wasn't able
|
||||
// to produce enough random data. This is fatal error and should cause a panic.
|
||||
errOutOfEntropy = errors.New("Unable to read enough randomness from the system")
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user