MCPcopy
hub / github.com/minio/minio-go / SSE

Function SSE

pkg/encrypt/server-side.go:127–135  ·  view source on GitHub ↗

SSE transforms a SSE-C copy encryption into a SSE-C encryption. It is the inverse of SSECopy(...). If the provided sse is no SSE-C copy encryption SSE returns sse unmodified.

(sse ServerSide)

Source from the content-addressed store, hash-verified

125// If the provided sse is no SSE-C copy encryption SSE returns
126// sse unmodified.
127func SSE(sse ServerSide) ServerSide {
128 if sse == nil || sse.Type() != SSEC {
129 return sse
130 }
131 if sse, ok := sse.(ssecCopy); ok {
132 return ssec(sse)
133 }
134 return sse
135}
136
137// SSECopy transforms a SSE-C encryption into a SSE-C copy
138// encryption. This is required for SSE-C key rotation or a SSE-C

Callers 1

ComposeObjectMethod · 0.92

Calls 2

ssecTypeAlias · 0.85
TypeMethod · 0.65

Tested by

no test coverage detected