<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/crypto/geode-aes.h, branch linux-5.3.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.3.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.3.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2019-12-13T07:49:28Z</updated>
<entry>
<title>crypto: geode-aes - switch to skcipher for cbc(aes) fallback</title>
<updated>2019-12-13T07:49:28Z</updated>
<author>
<name>Ard Biesheuvel</name>
</author>
<published>2019-10-05T09:11:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d6c7af7ba25ccab172e5cea58b664c4752661f22'/>
<id>urn:sha1:d6c7af7ba25ccab172e5cea58b664c4752661f22</id>
<content type='text'>
commit 504582e8e40b90b8f8c58783e2d1e4f6a2b71a3a upstream.

Commit 79c65d179a40e145 ("crypto: cbc - Convert to skcipher") updated
the generic CBC template wrapper from a blkcipher to a skcipher algo,
to get away from the deprecated blkcipher interface. However, as a side
effect, drivers that instantiate CBC transforms using the blkcipher as
a fallback no longer work, since skciphers can wrap blkciphers but not
the other way around. This broke the geode-aes driver.

So let's fix it by moving to the sync skcipher interface when allocating
the fallback. At the same time, align with the generic API for ECB and
CBC by rejecting inputs that are not a multiple of the AES block size.

Fixes: 79c65d179a40e145 ("crypto: cbc - Convert to skcipher")
Cc: &lt;stable@vger.kernel.org&gt; # v4.20+ ONLY
Signed-off-by: Ard Biesheuvel &lt;ard.biesheuvel@linaro.org&gt;
Signed-off-by: Florian Bezdeka &lt;florian@bezdeka.de&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152</title>
<updated>2019-05-30T18:26:32Z</updated>
<author>
<name>Thomas Gleixner</name>
</author>
<published>2019-05-27T06:55:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2874c5fd284268364ece81a7bd936f3c8168e567'/>
<id>urn:sha1:2874c5fd284268364ece81a7bd936f3c8168e567</id>
<content type='text'>
Based on 1 normalized pattern(s):

  this program is free software you can redistribute it and or modify
  it under the terms of the gnu general public license as published by
  the free software foundation either version 2 of the license or at
  your option any later version

extracted by the scancode license scanner the SPDX license identifier

  GPL-2.0-or-later

has been chosen to replace the boilerplate/reference in 3029 file(s).

Signed-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Reviewed-by: Allison Randal &lt;allison@lohutok.net&gt;
Cc: linux-spdx@vger.kernel.org
Link: https://lkml.kernel.org/r/20190527070032.746973796@linutronix.de
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>crypto: geode - Consistently use AES_KEYSIZE_128</title>
<updated>2014-05-22T13:03:12Z</updated>
<author>
<name>Marek Vasut</name>
</author>
<published>2014-05-14T09:36:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2e1fc34b29cba8b0d0a0a16b1dd2304b3b44d4df'/>
<id>urn:sha1:2e1fc34b29cba8b0d0a0a16b1dd2304b3b44d4df</id>
<content type='text'>
Consistently use AES_KEYSIZE_128 instead of arbitrary defined value.

Signed-off-by: Marek Vasut &lt;marex@denx.de&gt;
Cc: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
Cc: Dmitry Kasatkin &lt;dmitry.kasatkin@nokia.com&gt;
Cc: Eric Bénard &lt;eric@eukrea.com&gt;
Cc: Jussi Kivilinna &lt;jussi.kivilinna@mbnet.fi&gt;
Cc: Kent Yoder &lt;key@linux.vnet.ibm.com&gt;
Cc: Michal Ludvig &lt;michal@logix.cz&gt;
Cc: Varun Wadekar &lt;vwadekar@nvidia.com&gt;
Cc: Vladimir Zapolskiy &lt;vladimir_zapolskiy@mentor.com&gt;
Cc: linux-geode@lists.infradead.org
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: geode - Kill AES_IV_LENGTH</title>
<updated>2014-05-22T13:03:11Z</updated>
<author>
<name>Marek Vasut</name>
</author>
<published>2014-05-14T09:36:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bac79a2a6189d85f830b424c3b0414a4df5235c2'/>
<id>urn:sha1:bac79a2a6189d85f830b424c3b0414a4df5235c2</id>
<content type='text'>
The AES IV length is always 128bits, just use the define from aes.h

Signed-off-by: Marek Vasut &lt;marex@denx.de&gt;
Cc: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
Cc: Dmitry Kasatkin &lt;dmitry.kasatkin@nokia.com&gt;
Cc: Eric Bénard &lt;eric@eukrea.com&gt;
Cc: Jussi Kivilinna &lt;jussi.kivilinna@mbnet.fi&gt;
Cc: Kent Yoder &lt;key@linux.vnet.ibm.com&gt;
Cc: Michal Ludvig &lt;michal@logix.cz&gt;
Cc: Varun Wadekar &lt;vwadekar@nvidia.com&gt;
Cc: Vladimir Zapolskiy &lt;vladimir_zapolskiy@mentor.com&gt;
Cc: linux-geode@lists.infradead.org
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: geode - Kill AES_MIN_BLOCK_SIZE</title>
<updated>2014-05-22T13:03:11Z</updated>
<author>
<name>Marek Vasut</name>
</author>
<published>2014-05-14T09:36:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b9d865e331290dab97136413a9cf3465f3391ddf'/>
<id>urn:sha1:b9d865e331290dab97136413a9cf3465f3391ddf</id>
<content type='text'>
This is actually defined in include/crypto/aes.h , no need to have
a a different symbol for the same thing twice.

Signed-off-by: Marek Vasut &lt;marex@denx.de&gt;
Cc: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
Cc: Dmitry Kasatkin &lt;dmitry.kasatkin@nokia.com&gt;
Cc: Eric Bénard &lt;eric@eukrea.com&gt;
Cc: Jussi Kivilinna &lt;jussi.kivilinna@mbnet.fi&gt;
Cc: Kent Yoder &lt;key@linux.vnet.ibm.com&gt;
Cc: Michal Ludvig &lt;michal@logix.cz&gt;
Cc: Varun Wadekar &lt;vwadekar@nvidia.com&gt;
Cc: Vladimir Zapolskiy &lt;vladimir_zapolskiy@mentor.com&gt;
Cc: linux-geode@lists.infradead.org
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>[CRYPTO] geode: do not copy the IV too often</title>
<updated>2008-01-10T21:16:26Z</updated>
<author>
<name>Sebastian Siewior</name>
</author>
<published>2007-11-30T05:36:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d2456c66236c15d6462f1ac751cdbd48a34e9704'/>
<id>urn:sha1:d2456c66236c15d6462f1ac751cdbd48a34e9704</id>
<content type='text'>
There is no reason to keep the IV in the private structre. Instead keep
just a pointer to make the patch smaller :)
This also remove a few memcpy()s

Signed-off-by: Sebastian Siewior &lt;sebastian@breakpoint.cc&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>[CRYPTO] geode: Add fallback for unsupported modes</title>
<updated>2008-01-10T21:16:11Z</updated>
<author>
<name>Sebastian Siewior</name>
</author>
<published>2007-11-10T11:29:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cd7c3bfe54270f41ac52be6b725a7194d99175b4'/>
<id>urn:sha1:cd7c3bfe54270f41ac52be6b725a7194d99175b4</id>
<content type='text'>
The Geode AES crypto engine supports only 128 bit long key. This
patch adds fallback for other key sizes which are required by the
AES standard.

Signed-off-by: Sebastian Siewior &lt;sebastian@breakpoint.cc&gt;
Acked-by: Jordan Crouse &lt;jordan.crouse@amd.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>[CRYPTO] geode: move defines into a headerfile</title>
<updated>2008-01-10T21:16:05Z</updated>
<author>
<name>Sebastian Siewior</name>
</author>
<published>2007-10-21T08:21:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b7a30da61adc5f252ee97b2a4f3fc23c9d06a08a'/>
<id>urn:sha1:b7a30da61adc5f252ee97b2a4f3fc23c9d06a08a</id>
<content type='text'>
This patch moves macros in geode-aes.c into geode-aes.h.

Signed-off-by: Sebastian Siewior &lt;sebastian@breakpoint.cc&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>[CRYPTO] geode: Fix in-place operations and set key</title>
<updated>2007-05-24T11:23:24Z</updated>
<author>
<name>Jordan Crouse</name>
</author>
<published>2007-05-24T11:23:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=761e784673d79c8ea9befdad31e30c65e0d20b82'/>
<id>urn:sha1:761e784673d79c8ea9befdad31e30c65e0d20b82</id>
<content type='text'>
Allow in-place crypto operations.  Also remove the coherent user flag
(we use it automagically now), and by default use the user written
key rather then the HW hidden key - this makes crypto just work without
any special considerations, and thats OK, since its our only usage
model.

Signed-off-by: Jordan Crouse &lt;jordan.crouse@amd.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>[CRYPTO] geode: Make needlessly global geode_aes_crypt() static</title>
<updated>2006-12-07T02:38:53Z</updated>
<author>
<name>Adrian Bunk</name>
</author>
<published>2006-11-17T02:43:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ab7827059adbbcc3624afbc58880287eabf6d277'/>
<id>urn:sha1:ab7827059adbbcc3624afbc58880287eabf6d277</id>
<content type='text'>
On Tue, Nov 14, 2006 at 01:41:25AM -0800, Andrew Morton wrote:
&gt;...
&gt; Changes since 2.6.19-rc5-mm2:
&gt;...
&gt;  git-cryptodev.patch
&gt;...
&gt;  git trees
&gt;...

This patch makes the needlessly global geode_aes_crypt() static.

Signed-off-by: Adrian Bunk &lt;bunk@stusta.de&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
</feed>
