Skip to content

cms: Don't insert signing time attribute by default. - #1148

Merged
tarcieri merged 1 commit into
RustCrypto:masterfrom
bkstein:cms/remove-signing-time
Jul 12, 2023
Merged

cms: Don't insert signing time attribute by default.#1148
tarcieri merged 1 commit into
RustCrypto:masterfrom
bkstein:cms/remove-signing-time

Conversation

@bkstein

Copy link
Copy Markdown
Contributor

The current implementation of SignedDataBuilder inserted a signing time attribute by default. This was removed, as it is not required ans might even be unwanted.

@bksteinbkstein mentioned this pull request Jul 11, 2023

@baloobaloo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see a requirement to have it included by default in RFC 5652

@carl-wallacecarl-wallace left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me (and worked in context of the SCEP usage I mentioned before). I had a question re: whether always using signed attributes was OK but nothing in 5652 compels one to not use content type and message digest attributes, so this seems fine.

@tarcieri
tarcieri merged commit 5b477c3 into RustCrypto:masterJul 12, 2023
baloo added a commit to baloo/formats that referenced this pull request Jul 14, 2023
Added
- `SignedData` builder (RustCrypto#1051)
Changed
- Deprecate `pkcs7` in favor of `cms` (RustCrypto#1062)
- der: add `SetOf(Vec)::insert(_ordered)`; deprecate `add` (RustCrypto#1067)
- Re-enable all minimal-versions checks (RustCrypto#1071)
Fixed
- Don't insert signing time attribute by default (RustCrypto#1148)
- Fixed encoding of `SubjectKeyIdentifier` (RustCrypto#1152)
@baloobaloo mentioned this pull request Jul 14, 2023
baloo added a commit that referenced this pull request Jul 14, 2023
Added
- `SignedData` builder (#1051)
Changed
- Deprecate `pkcs7` in favor of `cms` (#1062)
- der: add `SetOf(Vec)::insert(_ordered)`; deprecate `add` (#1067)
- Re-enable all minimal-versions checks (#1071)
Fixed
- Don't insert signing time attribute by default (#1148)
- Fixed encoding of `SubjectKeyIdentifier` (#1152)
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@bkstein@tarcieri@baloo@carl-wallace