From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TKOZnQ4awTlk for ; Fri, 20 Apr 2012 12:55:54 +0200 (CEST) Received: from mail-iy0-f178.google.com (mail-iy0-f178.google.com [209.85.210.178]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Fri, 20 Apr 2012 12:55:54 +0200 (CEST) Received: by iakl21 with SMTP id l21so17145143iak.37 for ; Fri, 20 Apr 2012 03:55:53 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20120420102244.GA18629@tansi.org> References: <20120420102244.GA18629@tansi.org> Date: Fri, 20 Apr 2012 18:55:53 +0800 Message-ID: From: Rodel Miguel Content-Type: multipart/alternative; boundary=e89a8f2357e3dec04b04be1a2135 Subject: Re: [dm-crypt] why nbytes for block cipher encrypt/decrypt is only 512 bytes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de --e89a8f2357e3dec04b04be1a2135 Content-Type: text/plain; charset=ISO-8859-1 Hi Arno , thanks for the reply. What if I trick the system to have block size of say 128 instead of the default 16 for my AES driver? Do you know what the side effect could be? Thanks! On Apr 20, 2012 6:23 PM, "Arno Wagner" wrote: > I think you cannot. As long as the block-size for the IV scheme > is 512 bytes, you are stuck with encrypting 512 bytes at a time, > as they have their own IV. > > Arno > > > On Fri, Apr 20, 2012 at 05:28:54PM +0800, Rodel Miguel wrote: > > Hi, > > > > I am implementing a hardware encryption driver but I am having some > > performance issues. One of the areas of performance improvement that I > am > > thinking is to increase the number of bytes (unsigned int nbytes) that my > > block cipher driver's encrypt/decrypt function gets; from 512 to 4096 > > bytes. My hardware can be maximized to 4kbytes. Do you have any > > suggestions how I can maximize the en/decrypt performance by getting more > > than 512 bytes of data every time the block cipher's encrypt/decrypt is > > called? > > > > Thank you very much for your help! > > > > Kind Regards, > > Rodel > > > _______________________________________________ > > dm-crypt mailing list > > dm-crypt@saout.de > > http://www.saout.de/mailman/listinfo/dm-crypt > > > -- > Arno Wagner, Dr. sc. techn., Dipl. Inform., CISSP -- Email: > arno@wagner.name > GnuPG: ID: 1E25338F FP: 0C30 5782 9D93 F785 E79C 0296 797F 6B50 1E25 > 338F > ---- > One of the painful things about our time is that those who feel certainty > are stupid, and those with any imagination and understanding are filled > with doubt and indecision. -- Bertrand Russell > _______________________________________________ > dm-crypt mailing list > dm-crypt@saout.de > http://www.saout.de/mailman/listinfo/dm-crypt > --e89a8f2357e3dec04b04be1a2135 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

Hi Arno , thanks for the reply. What if I trick the system to have block= size of say 128 instead of the default 16 for my AES driver? Do you know w= hat the side effect could be?

Thanks!

On Apr 20, 2012 6:23 PM, "Arno Wagner"= <arno@wagner.name> wrote:
I think you cannot. As long as the block-size for the IV scheme
is 512 bytes, you are stuck with encrypting 512 bytes at a time,
as they have their own IV.

Arno


On Fri, Apr 20, 2012 at 05:28:54PM +0800, Rodel Miguel wrote:
> Hi,
>
> I am implementing a hardware encryption driver but I am having some > performance issues. =A0One of the areas of performance improvement tha= t I am
> thinking is to increase the number of bytes (unsigned int nbytes) that= my
> block cipher driver's encrypt/decrypt function gets; from 512 to 4= 096
> bytes. =A0My hardware can be maximized to 4kbytes. =A0Do you have any<= br> > suggestions how I can maximize the en/decrypt performance by getting m= ore
> than 512 bytes of data every time the block cipher's encrypt/decry= pt is
> called?
>
> Thank you very much for your help!
>
> Kind Regards,
> Rodel

> _______________________________________________
> dm-crypt mailing list
> dm-crypt@saout.de
> http://www.saout.de/mailman/listinfo/dm-crypt


--
Arno Wagner, Dr. sc. techn., Dipl. Inform., CISSP -- Email: arno@wagner.name
GnuPG: =A0ID: 1E25338F =A0FP: 0C30 5782 9D93 F785 E79C =A00296 797F 6B50 1E= 25 338F
----
One of the painful things about our time is that those who feel certainty are stupid, and those with any imagination and understanding are filled
with doubt and indecision. -- Bertrand Russell
_______________________________________________
dm-crypt mailing list
dm-crypt@saout.de
http://www.saout.de/mailman/listinfo/dm-crypt
--e89a8f2357e3dec04b04be1a2135--