DecryptSubscription unwraps an RVSUB1-prefixed payload. For non-encrypted input it returns the trimmed value unchanged.
(body string)
| 43 | // DecryptSubscription unwraps an RVSUB1-prefixed payload. For non-encrypted |
| 44 | // input it returns the trimmed value unchanged. |
| 45 | func DecryptSubscription(body string) (string, error) { |
| 46 | return tryDecryptSubscription(body) |
| 47 | } |
| 48 | |
| 49 | // tryDecryptSubscription attempts to decrypt an RVSUB1-prefixed payload. Returns |
| 50 | // the plaintext when successful, or a specific error so callers can surface a |
no test coverage detected