<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[wolfSSL - Embedded SSL Library — Decoding ASN1]]></title>
		<link>https://www.wolfssl.com/forums/topic2127-decoding-asn1.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic2127.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Decoding ASN1.]]></description>
		<lastBuildDate>Tue, 11 Jun 2024 21:48:45 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Decoding ASN1]]></title>
			<link>https://www.wolfssl.com/forums/post7700.html#p7700</link>
			<description><![CDATA[<p>Hi confused_squirrel,</p><p>Thanks for your interest in wolfSSL.&nbsp; You are on the right track with our getter functions such as GetASN_Items and GetASN_OID, these are the functions we use to parse ASN and the functions you should call for this case.&nbsp; These are internal static functions, we do not have a public interface for this.&nbsp; You will need to find a way to call static wolfSSL functions from your application, or patch our source to make these functions non static.<br />We don&#039;t currently have a complete example on how to use these functions as again, they are internal functions.</p><p>Are you willing to share some information about your project?&nbsp; Are you working on a commercial or personal project?&nbsp; You are welcome to email us at support [AT] wolfssl [DOT] com if this information is confidential.</p><p>Thanks,<br />Kareem</p>]]></description>
			<author><![CDATA[null@example.com (kareem_wolfssl)]]></author>
			<pubDate>Tue, 11 Jun 2024 21:48:45 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post7700.html#p7700</guid>
		</item>
		<item>
			<title><![CDATA[Decoding ASN1]]></title>
			<link>https://www.wolfssl.com/forums/post7699.html#p7699</link>
			<description><![CDATA[<p>I would like to decode ASN1 from a binary encoded file (not a certificate) using wolfCrypt to do the heavy lifting for me. Based off of this post - <a href="https://www.wolfssl.com/better-asn-1-support-with-templates/">https://www.wolfssl.com/better-asn-1-su … templates/</a> - it sounds like this can be done using templates.</p><p>Using an X509 cert as the example, it seems like this involves creating an array of type &quot;ASNItem&quot; (&quot;x509CertASN&quot; in asn.c) and using functions such as GetASN_Items()/GetASN_OID(). The issue is these functions are local for internal ASN processing.</p><p>Looking into asn_public.h, there are structs for &quot;Asn1Item&quot; and &quot;Asn1&quot; but no obvious functions to handle decoding. My best guess is that the wc_Asn1_PrintAll()/wc_Asn1_Print() functions could be used in some way as they facilitate parsing and save results in an &quot;Asn1&quot; object.</p><p>Is there a way to specify a template for how the ASN1 should look and have wolfCrypt parse it? Or parse the data and save it into an object so it could be compared after?</p><p>Thanks</p>]]></description>
			<author><![CDATA[null@example.com (confused_squirrel)]]></author>
			<pubDate>Tue, 11 Jun 2024 14:48:01 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post7699.html#p7699</guid>
		</item>
	</channel>
</rss>
