Expand description
ASN.1 SET OF support.
ยงOrdering Notes
Some DER serializer implementations fail to properly sort elements of a SET OF. This is
technically non-canonical, but occurs frequently enough that most DER decoders tolerate it.
When decoding with EncodingRules::Der, this implementation sorts the elements of SET OF at
decode-time to ensure reserializations are canonical.
Structsยง
Functionsยง
- check_
der_ ๐ordering - Ensure set elements are lexicographically ordered using
DerOrd. - check_
duplicate ๐ - Check if the given item is a duplicate, given an iterator over sorted items (which we can
short-circuit once we hit
Ordering::Less. - der_
sort ๐ - Sort a mut slice according to its
DerOrd, returning any errors which might occur during the comparison.