Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Improves BER GeneralizedTime decoders, support for CER/DER strict mode #150

Merged
merged 5 commits into from
Aug 25, 2023

Conversation

Nicceboy
Copy link
Contributor

BER GeneralizedTime decoder should now handle all cases.
Added stricter function also for CER/DER.
I am not sure, if we should use BER decoder for CER/DER as well, but at least asn1tools use stricter versions.

Resolves #57

Also Encoder produces valid canonical form now.

Make these functions public, so that other codecs can access them.

Since BER allows any ASN.1 compatible GeneralizedTime type, should this check to be moved into the type itself?

@Nicceboy Nicceboy force-pushed the ber-generalized-time branch 2 times, most recently from c645e69 to 82c87b9 Compare August 25, 2023 16:47
@Nicceboy Nicceboy force-pushed the ber-generalized-time branch from 82c87b9 to 66d6366 Compare August 25, 2023 17:06
@XAMPPRocky
Copy link
Collaborator

Thank you for your PR!

Since BER allows any ASN.1 compatible GeneralizedTime type, should this check to be moved into the type itself?

Yes, let's make that a follow-up PR though.

@XAMPPRocky XAMPPRocky merged commit 3e4f0ac into librasn:main Aug 25, 2023
@github-actions github-actions bot mentioned this pull request Aug 25, 2023
@Nicceboy Nicceboy deleted the ber-generalized-time branch August 25, 2023 21:12
@github-actions github-actions bot mentioned this pull request Sep 22, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GeneralizedTime encodes unaccepted value.
2 participants