forked from fullsailor/pkcs7
-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: simpler ber2der + too-big-length detection
In ber2der skip building of intermediate tree of BER objects. Rather write immediately the DER bytes patching as necessary the length when it becomes known. Make code more idiomatic using append() on byte slices. If BER data use fixed length encoding, report an error when the total length of children is less than the length declared in the parent. Previously such error was ignored with the parent length fixed in the DER encoding.
- Loading branch information
Showing
2 changed files
with
101 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters