Files
emaloney c8aece90ea Fix CMSSignerInfo's unsignedAttrs tag (#307)
### Motivation

`CMSSignerInfo` could not round-trip `unsignedAttrs`: it serializes them
as `[1] IMPLICIT SET` but the DER and BER parsers asked for the inner
set with implicit tag `[0]`, so parsing any SignerInfo with unsigned
attributes threw `unexpectedFieldType: [1]`.

### Changes

Fixes issue #306 by:

- Correcting the `unsignedAttrs` inner set identifier from `[0]` to
`[1]` in the DER and BER initializers of `CMSSignerInfo`.
- Adding a round-trip unit test for a `CMSSignerInfo` carrying
`unsignedAttrs`.

### Result

`unsignedAttrs` now round-trip correctly; no behavior change to the
(already correct) serialized output.
2026-08-27 20:07:04 +01:00
..
2025-05-05 12:21:20 +01:00