Skip to content
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 74 commits into from
Dec 20, 2023
Merged

Asn1 parsing library #43

merged 74 commits into from
Dec 20, 2023

Conversation

TheBestTvarynka
Copy link
Owner

No description provided.

@TheBestTvarynka TheBestTvarynka added the asn1-parser Changes in the asn1-parser label Jul 6, 2023
@TheBestTvarynka TheBestTvarynka self-assigned this Jul 6, 2023
@TheBestTvarynka TheBestTvarynka marked this pull request as draft July 6, 2023 20:27
@TheBestTvarynka TheBestTvarynka force-pushed the asn1 branch 2 times, most recently from fe850db to 2215278 Compare November 24, 2023 22:16
Copy link

@MetaMmodern MetaMmodern left a 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

@TheBestTvarynka TheBestTvarynka marked this pull request as ready for review December 19, 2023 22:14
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;
@TheBestTvarynka TheBestTvarynka merged commit 5547002 into main Dec 20, 2023
1 check passed
@TheBestTvarynka TheBestTvarynka deleted the asn1 branch December 20, 2023 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
asn1-parser Changes in the asn1-parser
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants