Re: [patch 1/13] s390: des crypto code cleanup.

From: Martin Schwidefsky
Date: Fri Jan 13 2006 - 08:48:22 EST


On Fri, 2006-01-13 at 13:58 +0100, Pavel Machek wrote:
> On Čt 12-01-06 18:14:04, Martin Schwidefsky wrote:
> > From: Jan Glauber <jan.glauber@xxxxxxxxxx>
> >
> > [patch 1/13] s390: des crypto code cleanup.
> >
> > Beautify the s390 in-kernel-crypto des code.
> >
> > Signed-off-by: Jan Glauber <jan.glauber@xxxxxxxxxx>
> > Signed-off-by: Martin Schwidefsky <schwidefsky@xxxxxxxxxx>
>
> Why does s390 need to do des in arch-specific code, BTW? Is it driver
> for some crypto accelerator or what?

Yes, the z900 and following machines have processor instructions to
speed up the crypto algorithms. There are instructions for sha1, sha256,
des and aes. They provide a good speedup, with the latest code des is up
to a factor of 40 faster than the software implementation.

--
blue skies,
Martin

Martin Schwidefsky
Linux for zSeries Development & Services
IBM Deutschland Entwicklung GmbH


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/