mirror of
https://github.com/apple/swift-asn1
synced 2026-11-24 04:17:50 +00:00
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.