Mikko Nylén 3489fdb19b
JWE arbitrary content compression (#937)
Closes #938.

* Fix compression being omitted for JWEs with arbitrary content

The JWE content was compressed only when claims was used as payload, but
when using arbitrary content, the compression was omitted, while keeping
the "zip" header field, leading to decompression failing.

* Refactor duplicate payload -> input stream logic from sign()/encrypt()

* Preserve the content name

* Fix name for JWE payload
2024-04-24 19:52:25 -07:00
..
2024-01-31 18:52:53 -08:00