<?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 — PKCS#7 (CMS) only supports DES and 3DES]]></title>
		<link>https://www.wolfssl.com/forums/topic838-pkcs7-cms-only-supports-des-and-3des.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic838.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in PKCS#7 (CMS) only supports DES and 3DES.]]></description>
		<lastBuildDate>Fri, 12 Aug 2016 17:22:41 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: PKCS#7 (CMS) only supports DES and 3DES]]></title>
			<link>https://www.wolfssl.com/forums/post2662.html#p2662</link>
			<description><![CDATA[<p>Hi,</p><p>At the time our PKCS#7 implementation was written, it only needed to support DES and 3DES encrypt cipher types for EnvelopedData.</p><p>I have added this request to our desired features list.</p><p>Thanks,<br />Chris</p>]]></description>
			<author><![CDATA[null@example.com (chrisc)]]></author>
			<pubDate>Fri, 12 Aug 2016 17:22:41 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post2662.html#p2662</guid>
		</item>
		<item>
			<title><![CDATA[PKCS#7 (CMS) only supports DES and 3DES]]></title>
			<link>https://www.wolfssl.com/forums/post2661.html#p2661</link>
			<description><![CDATA[<p>Hi all,</p><p>I began to code for using <strong>PKCS#7 (CMS)</strong> with <strong>wolfCrypt</strong> but, after preparing all needed, once I was going to use <em>wc_PKCS7_EncodeData</em> function, I couldn&#039;t define <em>encryptOID</em> (key encryption algorithm OID) to AES (precisely AES 128 Mode CBC). <strong>PKCS#7 only supports DES and 3DES</strong>.</p><div class="codebox"><pre><code>/* build PKCS#7 envelopedData content type, return enveloped size */
int wc_PKCS7_EncodeEnvelopedData(PKCS7* pkcs7, byte* output, word32 outputSz)
{
...
    /* PKCS#7 only supports DES, 3DES for now */
    switch (pkcs7-&gt;encryptOID) {
        case DESb:
            blockKeySz = DES_KEYLEN;
            break;

        case DES3b:
            blockKeySz = DES3_KEYLEN;
            break;

        default:
            WOLFSSL_MSG(&quot;Unsupported content cipher type&quot;);
            return ALGO_ID_E;
    };
...
}</code></pre></div><p>Why wolfCrypt doesn&#039;t support AES? I needed to use PKCS#7 with AES to meet specifications. Have you got a solution for me?</p><p>Thanks.</p>]]></description>
			<author><![CDATA[null@example.com (bachelet_safi)]]></author>
			<pubDate>Fri, 12 Aug 2016 09:28:33 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post2661.html#p2661</guid>
		</item>
	</channel>
</rss>
