-
Notifications
You must be signed in to change notification settings - Fork 7
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
Asn1 parsing library #43
Merged
Merged
Conversation
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
TheBestTvarynka
force-pushed
the
asn1
branch
2 times, most recently
from
November 24, 2023 22:16
fe850db
to
2215278
Compare
MetaMmodern
suggested changes
Dec 7, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rewrite in nodejs please
Improve readme.md: add list of `asn1` types with links to quick reference.
* initialize module structure. * add `Asn1` struct, `Asn1Type` enum. Implement getters for `Asn1` structure. * add structures (empty) for octet/utf8 strings and sequence.
* Make crate no-std. * Add `Reader` struct with `new` and `read` methods. * Add simple `Error` struct. It will be extended in the future. * Add `Asn1Decode` and `Asn1Entity` traits.
* Implement length reading. * `macros`: init module. Add check_tag macro. * reader: add more methods: `data_in_range`, `position`, `read_exact`, `read_byte`; * `Asn1` structure: make inner fields crate-public. * `Sequence`: replace custom `Default` impl with derived one. * Improve `Asn1Decode` trait: add `'data` lifetime. * Implement `OctetString` decoding. Add simple test to show how it works.
* string: add owned version of the octet and utf8 strings; * update Cargo.toml: add author, description, etc.
* Add `Asn1Encode` crate. * Add `From<TryFromIntError>` implementation for the `Error`. * Implement `Asn1Decode`, `Asn1Encode`, `Asn1Entity` for the `Asn1Type`. * Implement `Asn1Encode` for `OctetString` and `Utf8String`.
…1_type, any_octet_string, any_utf8_string strategies;
…strategy for bitstring.
…g for octet string bytes
… length and data tanges in Tlv;
TheBestTvarynka
force-pushed
the
asn1
branch
from
December 19, 2023 22:19
403d9d0
to
ebb62d9
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.