Cory Benfield
8fb2cd7edc
Add support for serializing raw bytes.
...
In rare cases it's necessary for users to be able to do an end-run
around the serializer. This is most common in cases where some bytes
have had a signature calculated over them, and they are being
re-encoded. Even though DER is unambiguous, the ASN.1 objects themselves
may not be, and may permit multiple valid encodings. Allowing the bytes
to be re-serialized as they were preserves the integrity of the
signature.
2023-03-08 09:06:29 +00:00
David Nadoba
9d9a8a0c35
Fix review comments
2023-02-10 10:34:13 +01:00
David Nadoba
321a1076ac
Fix review comments
2023-02-08 18:09:17 +01:00
David Nadoba
e5ebc6fcb6
rename ASN1BytesComparable to ASN1SetElement
2023-02-08 15:45:29 +01:00
David Nadoba
70d18b6847
SET OF de/serialization
2023-02-07 14:19:10 +01:00
Cory Benfield
0fa1d76282
Move to struct-backed error pattern
2023-02-03 10:37:10 +00:00
David Nadoba
4363483e72
Add support for implicitly tagged optional fields
2023-02-02 14:49:58 +01:00
David Nadoba
cfeb75ac80
Fix soundness
...
File extension of the CONTRIBUTORS file is `.txt` not `.md`
2022-11-30 11:17:30 +01:00
David Nadoba
080ce9bdc8
Use correct project name in license header
...
And add missing header in one file
2022-11-24 22:52:31 +01:00
Cory Benfield
eb11d30c1d
Remove constructed/primitive from the tag type
...
Constructed/primitive is an artefact of the encoder, not of the tag, so
we should remove it from the tag type itself.
2022-11-18 15:33:46 +00:00
Cory Benfield
d52b14f90f
Tolerate single-component OIDs
2022-11-18 14:42:26 +00:00
Cory Benfield
e30f8d297d
Move testing types to tests
2022-11-17 17:53:20 +00:00
Cory Benfield
099c2574e3
Remove the ASN1 namespace
2022-11-17 17:20:09 +00:00
Cory Benfield
87aa5246b2
Better ASN1Any printed representation
2022-11-17 09:47:55 +00:00
Cory Benfield
11f0617fac
Better OID string representation
2022-11-16 16:41:23 +00:00
Cory Benfield
81b7d4dc72
Initial commit
2022-11-15 10:31:11 +01:00