Skip to content

Instantly share code, notes, and snippets.

@5HT
Last active January 1, 2026 10:45
Show Gist options
  • Select an option

  • Save 5HT/fc6fb8a4d2d038b28e68c75dd1746693 to your computer and use it in GitHub Desktop.

Select an option

Save 5HT/fc6fb8a4d2d038b28e68c75dd1746693 to your computer and use it in GitHub Desktop.
cloudflare.txt
Subject: Introducing a Modern Multi-Language ASN.1 Code Generation Compiler – Open for Collaboration
From: Maxim Sokhatsky
CTO of SYNRC Research Center, Ukraine
Email: maxim@synrc.com
GitHub: https://github.com/erpuno
Website: https://asn1.erp.uno/
To: Cloudflare Open Source / Cryptography Engineering Team
Cloudflare, Inc.
101 Townsend St
San Francisco, CA 94107 USA
opensource@cloudflare.com / security@cloudflare.com / dane@cloudflare.com / matthew@cloudflare.com
Dear Cloudflare Team,
I am reaching out to introduce an open-source ASN.1 code generation compiler
we've developed, available at https://github.com/erpuno/asn1.
As Cloudflare extensively handles cryptographic protocols like TLS
(including X.509 certificates, which are heavily based on ASN.1 DER encoding)
and continues to innovate in post-quantum cryptography,
I believe this tool could be valuable for your internal tooling,
protocol implementations, or related open-source projects.
Overview of the ASN.1 Compiler
This compiler generates production-ready code from ASN.1 specifications,
with a focus on modern, multi-language support:
•⁠ Supported Backends: Rust, C99, Go, Swift, TypeScript, and Java
enabling seamless integration across diverse stacks,
from systems programming to web and mobile.
•⁠ Key Capabilities: Full code generation for encoding/decoding,
including support for DER (evidenced by included test files
like verified.der and ca.crt for certificate handling) and
recursive data types.
•⁠ Advantages: Designed for reliability and ease of use in
real-world applications, with rebuild and verification
scripts for each language to ensure consistency.
While many existing ASN.1 tools (such as asn1c, Fabrice Bellard's implementations,
or specialized ones like the European Space Agency's F# compiler) are often limited
to single languages or partial standard compliance, this project prioritizes broad
language coverage and practical usability for contemporary development.
The project is fully open source under the DHARMA License and hosted on GitHub:
https://github.com/erpuno/asn1. It includes example specifications,
rebuild scripts for all backends, and verification tools. But in case you will
join to collaboration on ASN.1 we are loyal to change license for your needs.
Our implementation is being deployed in Ministry of Internal Affairs of Ukraine,
during my employment there from 2019 to 2022.
Potential Relevance to Cloudflare
Given Cloudflare's leadership in TLS deployment (including widespread post-quantum
hybrid key agreements), certificate management at scale, and contributions to
cryptographic libraries (e.g., via BoringSSL forks or related efforts),
a flexible ASN.1 compiler could streamline:
•⁠ Parsing and generating X.509 structures
•⁠ Prototyping new encodings or extensions
•⁠ Internal tools for protocol validation or Workers-related crypto features
I'm particularly interested in exploring ways Cloudflare might benefit from or
contribute to this project – whether through adoption in your stack, feedback
on features (e.g., expanding encoding support like PER/OER if needed),
joint promotion via your blog or open-source channels, or even contributions
from your engineering team.
I'd love to discuss this further, answer any questions, or provide demos/builds
tailored to your use cases. Please feel free to reply or forward this to the
appropriate team (e.g., cryptography, security, or open-source leads).
Thank you for your time and for all the impactful open-source work Cloudflare
contributes to the ecosystem.
Best regards,
Maxim Sokhatsky
CTO of SYNRC Research Center
https://github.com/erpuno/asn1
https://asn1.erp.uno/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment