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)
| 125 | // If the provided sse is no SSE-C copy encryption SSE returns |
| 126 | // sse unmodified. |
| 127 | func 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 |
no test coverage detected