Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

der: add SetOf(Vec)::insert(_ordered); deprecate add #1067

Merged
merged 1 commit into from
May 15, 2023

Conversation

tarcieri
Copy link
Member

Renames the insertion methods on SetOf and SetOfVec from add to insert_ordered, deprecating the previous add method.

Also adds an insert method which pushes onto the underlying (Array)Vec then calls der_sort. This should be relatively fast since the underlying algorithm is insertion sort and operating on data which is mostly in-order.

The name insert is more consistent with BTreeSet/HashSet.

Renames the insertion methods on `SetOf` and `SetOfVec` from `add` to
`insert_ordered`, deprecating the previous `add` method.

Also adds an `insert` method which pushes onto the underlying
`(Array)Vec` then calls `der_sort`. This should be relatively fast since
the underlying algorithm is insertion sort and operating on data which
is mostly in-order.

The name `insert` is more consistent with `BTreeSet`/`HashSet`.
@tarcieri tarcieri force-pushed the der/setof-insert branch from aaeca6b to 696ffee Compare May 15, 2023 19:00
@tarcieri tarcieri merged commit 8f480f5 into master May 15, 2023
@tarcieri tarcieri deleted the der/setof-insert branch May 15, 2023 20:13
@tarcieri tarcieri mentioned this pull request May 16, 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)
@baloo baloo 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 free to 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.

1 participant