<?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 — [SOLVED] TypeError: initializer for ctype 'Aes *' must...]]></title>
		<link>https://www.wolfssl.com/forums/topic869-solved-typeerror-initializer-for-ctype-aes-must.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic869.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in [SOLVED] TypeError: initializer for ctype 'Aes *' must....]]></description>
		<lastBuildDate>Fri, 04 Nov 2016 11:25:21 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] TypeError: initializer for ctype 'Aes *' must...]]></title>
			<link>https://www.wolfssl.com/forums/post2817.html#p2817</link>
			<description><![CDATA[<p>Finally! It works perfectly. <br />Thanks very much really.</p>]]></description>
			<author><![CDATA[null@example.com (jesussotofan)]]></author>
			<pubDate>Fri, 04 Nov 2016 11:25:21 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post2817.html#p2817</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] TypeError: initializer for ctype 'Aes *' must...]]></title>
			<link>https://www.wolfssl.com/forums/post2812.html#p2812</link>
			<description><![CDATA[<p>Hi jesussotofan,</p><p>I got the following results:</p><p>&gt;&gt;&gt; from wolfcrypt import ciphers<br />&gt;&gt;&gt; vector = &quot;1234567890abcdef&quot;<br />&gt;&gt;&gt; clave = &quot;1234567890abcdef1234567890abcdef&quot;<br />&gt;&gt;&gt; texto = &quot;hola mundo&quot;<br />&gt;&gt;&gt;<br />&gt;&gt;&gt; aes = ciphers.Aes(clave, ciphers.MODE_CBC, vector)<br />&gt;&gt;&gt;<br />&gt;&gt;&gt; aes.encrypt(texto)<br />Traceback (most recent call last):<br />&nbsp; File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;<br />&nbsp; File &quot;/usr/local/lib/python2.7/dist-packages/wolfcrypt/ciphers.py&quot;, line 109, in encrypt<br />&nbsp; &nbsp; &quot;string must be a multiple of %d in length&quot; % self.block_size)<br />ValueError: string must be a multiple of 16 in length<br />&gt;&gt;&gt;<br />&gt;&gt;&gt; ciphertext = aes.encrypt(texto+&quot;FFFFFF&quot;)<br />&gt;&gt;&gt; ciphertext<br />&quot;\xd1\x1e\xe16(\x93&#039;\xd9\n\xf4s\x96M\xd6gQ&quot;<br />&gt;&gt;&gt; aes.decrypt(ciphertext)<br />&#039;hola mundoFFFFFF&#039;<br />&gt;&gt;&gt;</p><p>The function _set_key(ciphers._ENCRYPTION) should not be called by end users. This is a private function. After creating the Aes object, you should call encrypt() or decrypt() and remember that the param to be encrypted or decrypted must be multiple of 16 in length.</p><p>Happy Hacking o/</p>]]></description>
			<author><![CDATA[null@example.com (moises.guimaraes)]]></author>
			<pubDate>Thu, 03 Nov 2016 16:31:49 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post2812.html#p2812</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] TypeError: initializer for ctype 'Aes *' must...]]></title>
			<link>https://www.wolfssl.com/forums/post2811.html#p2811</link>
			<description><![CDATA[<p>Hi jesussotofan,</p><p>I&#039;m testing it right now on my raspberry pi. I&#039;ll let you know the results soon.</p><p>[ ]&#039;s</p>]]></description>
			<author><![CDATA[null@example.com (moises.guimaraes)]]></author>
			<pubDate>Thu, 03 Nov 2016 15:19:38 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post2811.html#p2811</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] TypeError: initializer for ctype 'Aes *' must...]]></title>
			<link>https://www.wolfssl.com/forums/post2802.html#p2802</link>
			<description><![CDATA[<p>Hi Kaleb, do we have some news?</p>]]></description>
			<author><![CDATA[null@example.com (jesussotofan)]]></author>
			<pubDate>Tue, 01 Nov 2016 18:07:56 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post2802.html#p2802</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] TypeError: initializer for ctype 'Aes *' must...]]></title>
			<link>https://www.wolfssl.com/forums/post2785.html#p2785</link>
			<description><![CDATA[<p>Hi jesussotofan,</p><p>I have asked our python expert to look into this for you. Moises should be in touch soon with a resolution.</p><br /><p>Kind Regards,</p><p>Kaleb</p>]]></description>
			<author><![CDATA[null@example.com (Kaleb J. Himes)]]></author>
			<pubDate>Wed, 26 Oct 2016 15:10:36 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post2785.html#p2785</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] TypeError: initializer for ctype 'Aes *' must...]]></title>
			<link>https://www.wolfssl.com/forums/post2784.html#p2784</link>
			<description><![CDATA[<p>UP?</p>]]></description>
			<author><![CDATA[null@example.com (jesussotofan)]]></author>
			<pubDate>Wed, 26 Oct 2016 09:07:41 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post2784.html#p2784</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] TypeError: initializer for ctype 'Aes *' must...]]></title>
			<link>https://www.wolfssl.com/forums/post2779.html#p2779</link>
			<description><![CDATA[<p>Hi, I&#039;m using encapsulation wolfcrypt in python in my Raspberry Pi.<br />I&#039;m trying to encrypt something using aes, but I am getting this error that I can not solve.</p><p>My code: <br /></p><div class="codebox"><pre><code>from wolfcrypt import ciphers

vector = &quot;1234567890abcdef&quot;;
clave = &quot;1234567890abcdef1234567890abcdef&quot;;
texto = &quot;hola mundo&quot;;

Aes = ciphers.Aes(clave, ciphers.MODE_CBC, vector);
Aes._set_key(ciphers._ENCRYPTION);</code></pre></div><p>Error:<br /></p><div class="codebox"><pre><code>Traceback (most recent call last):
  File &quot;/home/pi/Desktop/probandoAes.py&quot;, line 9, in &lt;module&gt;
    Aes._set_key(ciphers._ENCRYPTION);
  File &quot;/usr/local/lib/python2.7/dist-packages/wolfcrypt/ciphers.py&quot;, line 167, in _set_key
    self._enc, self._key, len(self._key), self._IV, _ENCRYPTION)
TypeError: initializer for ctype &#039;Aes *&#039; must be a cdata pointer, not NoneType
&gt;&gt;&gt; </code></pre></div><p>Can you offer me some help?</p>]]></description>
			<author><![CDATA[null@example.com (jesussotofan)]]></author>
			<pubDate>Sat, 22 Oct 2016 15:25:17 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post2779.html#p2779</guid>
		</item>
	</channel>
</rss>
