You are right about AES-CBC. Palatalization of block encryption is not
really possible. If you want to encrypt blocks in parallel then you should
use AES-CTR. 

Kris

--------- Original Message --------
From: [email protected]
To: Erwann Abalea <[email protected]>
Cc: [email protected]
Subject: Re: [openssl-users] specifying the number of rounds that I would
like to use with AES-192-CBC
Date: Mar 13, 2013 10:18 PM

> I'm quite new to openSSL and AES and cryptography as a whole, so
> please forgive my &quot;stupid&quot; questions.
> 
> I've read that because of the way that the AES-CBC works that it
> depends on the result from the previous round in order to encrypt the
> current round that it is inherently not well suited for
> parallelization; which I am then guessing that it is very possible
> that it would run (a LOT) slower on GPGPU than it would on an AES-NI
> enabled CPU. Would that be a fair and safe assumption?
> 
> I'm also looking online and through the man pages and it seems like
> that people are invoking the aesni by using the command:
> 
> openssl -engine aesni -evp aes-256-cbc ...
> 
> what's the '-evp' flag for?
> 
> On Wed, Mar 13, 2013 at 12:12 PM, Erwann Abalea
> &lt;[email protected]&gt; wrote:
> &gt; GPGPU isn't natively supported. You can write your own engine if you
want,
> &gt; but I think memory transfers will dominate the cost.
> &gt; AES-NI is natively supported (I get about 550MB/s on my i5 M540 @2.53
GHz
> &gt; for 8k blocks).
> &gt;
> &gt; --
> &gt; Erwann ABALEA
> &gt;
> &gt; Le 13/03/2013 16:49, Ewen Chan a écrit :
> &gt;&gt;
> &gt;&gt; Would it be faster to encrypt/decrypt AES-256-CBC with an AES-NI
> &gt;&gt; enabled CPU or would it faster do it with a GPGPU?
> &gt;&gt;
> &gt;&gt; Does OpenSSL even support GPU acceleration?
> &gt;&gt;
> &gt;&gt; On Wed, Mar 13, 2013 at 11:44 AM, Ewen Chan
&lt;[email protected]&gt; wrote:
> &gt;&gt;&gt;
> &gt;&gt;&gt; Thanks.
> &gt;&gt;&gt;
> &gt;&gt;&gt; On Wed, Mar 13, 2013 at 10:56 AM, Erwann Abalea
> &gt;&gt;&gt; &lt;[email protected]&gt; wrote:
> &gt;&gt;&gt;&gt;
> &gt;&gt;&gt;&gt; The algorithm &quot;Rijndael&quot; has some knobs you can
turn to tune.
> &gt;&gt;&gt;&gt; The standard &quot;AES&quot; has these parameters fixed
in stone.
> &gt;&gt;&gt;&gt;
> &gt;&gt;&gt;&gt; AES-192 is effectively &quot;less secure&quot; than
AES-256 because of the key
> &gt;&gt;&gt;&gt; length
> &gt;&gt;&gt;&gt; and number of rounds.
> &gt;&gt;&gt;&gt; But &quot;less secure&quot; may be &quot;secure
enough&quot;. In fact, AES-128 is secure
> &gt;&gt;&gt;&gt; enough
> &gt;&gt;&gt;&gt; for most uses.
> &gt;&gt;&gt;&gt; Number of rounds is important for AES security as it is
for any other
> &gt;&gt;&gt;&gt; algorithm (think about attacks on reduced-rounds
AES/SHA/whatever).
> &gt;&gt;&gt;&gt;
> &gt;&gt;&gt;&gt; --
> &gt;&gt;&gt;&gt; Erwann ABALEA
> &gt;&gt;&gt;&gt;
> &gt;&gt;&gt;&gt; Le 13/03/2013 15:31, Ewen Chan a écrit :
> &gt;&gt;&gt;&gt;
> &gt;&gt;&gt;&gt;&gt; So the algorithms include the number of rounds? I
thought that it
> &gt;&gt;&gt;&gt;&gt; would only describe the math process and that it
would be independent
> &gt;&gt;&gt;&gt;&gt; of the number of rounds (so long as you meed
Rijndael's &quot;minimum&quot; -
> &gt;&gt;&gt;&gt;&gt; which is what the current number of rounds is
set/default as).
> &gt;&gt;&gt;&gt;&gt;
> &gt;&gt;&gt;&gt;&gt; I did not know that. Hmmm....thanks.
> &gt;&gt;&gt;&gt;&gt;
> &gt;&gt;&gt;&gt;&gt; Does this mean that a AES-192-CBC is less secure than
an AES-256-CBC
> &gt;&gt;&gt;&gt;&gt; because of the key length and the number of rounds
associated with
> &gt;&gt;&gt;&gt;&gt; that; or am I understanding that wrong - that the
number of rounds has
> &gt;&gt;&gt;&gt;&gt; less-so to do with the security of the algorithm
compared to the key
> &gt;&gt;&gt;&gt;&gt; length?
> &gt;&gt;&gt;&gt;&gt;
> &gt;&gt;&gt;&gt;&gt; On Wed, Mar 13, 2013 at 10:24 AM, Erwann Abalea
> &gt;&gt;&gt;&gt;&gt; &lt;[email protected]&gt; wrote:
> &gt;&gt;&gt;&gt;&gt;&gt;
> &gt;&gt;&gt;&gt;&gt;&gt; If you change the number of rounds, then it's not
AES anymore, but a
> &gt;&gt;&gt;&gt;&gt;&gt; custom
> &gt;&gt;&gt;&gt;&gt;&gt; Rijndael.
> &gt;&gt;&gt;&gt;&gt;&gt; Reading the source code, it appears there's no
support for that in
> &gt;&gt;&gt;&gt;&gt;&gt; OpenSSL
> &gt;&gt;&gt;&gt;&gt;&gt; (and poking inside an AES_KEY to change the
number of rounds probably
> &gt;&gt;&gt;&gt;&gt;&gt; won't
> &gt;&gt;&gt;&gt;&gt;&gt; work).
> &gt;&gt;&gt;&gt;&gt;&gt;
> &gt;&gt;&gt;&gt;&gt;&gt; --
> &gt;&gt;&gt;&gt;&gt;&gt; Erwann ABALEA
> &gt;&gt;&gt;&gt;&gt;&gt;
> &gt;&gt;&gt;&gt;&gt;&gt; Le 13/03/2013 14:32, Ewen Chan a écrit :
> &gt;&gt;&gt;&gt;&gt;&gt;
> &gt;&gt;&gt;&gt;&gt;&gt;&gt; There's a file that I want to encrypt using
AES-192-CBC but with 19
> &gt;&gt;&gt;&gt;&gt;&gt;&gt; rounds rather than the default 12-rounds.
> &gt;&gt;&gt;&gt;&gt;&gt;&gt;
> &gt;&gt;&gt;&gt;&gt;&gt;&gt; Is there a way for me to specify the number
of rounds that I would
> &gt;&gt;&gt;&gt;&gt;&gt;&gt; like to use with the AES-192-CBC? (and
override the algorithm
> &gt;&gt;&gt;&gt;&gt;&gt;&gt; defaults)?
> &gt;&gt;&gt;&gt;&gt;&gt;&gt;
> &gt;&gt;&gt;&gt;&gt;&gt;&gt; Is that something that I can within the
openssl command itself (to
> &gt;&gt;&gt;&gt;&gt;&gt;&gt; encrypt a file) or is the process much more
involved than that? And
> &gt;&gt;&gt;&gt;&gt;&gt;&gt; requires programming/scripting?
> &gt;&gt;&gt;&gt;&gt;&gt;
> &gt;&gt;&gt;&gt;&gt;&gt;
> &gt;&gt;
______________________________________________________________________
> &gt;&gt; OpenSSL Project                                
http://www.openssl.org
> &gt;&gt; User Support Mailing List                   
[email protected]
> &gt;&gt; Automated List Manager                          
[email protected]
> &gt;&gt;
> &gt;
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    [email protected]
> Automated List Manager                           [email protected]
> 



Sent to you using Uebimiau Webmail version 3.11
Developed by Dave and Todd at http://www.manvel.net and http://www.tdah.us

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [email protected]

Reply via email to