mirror of
https://github.com/minio/minio.git
synced 2026-02-05 02:10:14 -05:00
feat: SSE-KMS use uuid instead of read all data to md5. (#17958)
This commit is contained in:
@@ -342,6 +342,15 @@ func mustGetUUID() string {
|
||||
return u.String()
|
||||
}
|
||||
|
||||
// mustGetUUIDBytes - get a random UUID as 16 bytes unencoded.
|
||||
func mustGetUUIDBytes() []byte {
|
||||
u, err := uuid.NewRandom()
|
||||
if err != nil {
|
||||
logger.CriticalIf(GlobalContext, err)
|
||||
}
|
||||
return u[:]
|
||||
}
|
||||
|
||||
// Create an s3 compatible MD5sum for complete multipart transaction.
|
||||
func getCompleteMultipartMD5(parts []CompletePart) string {
|
||||
var finalMD5Bytes []byte
|
||||
|
||||
Reference in New Issue
Block a user