<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/crypto/sunxi-ss, branch linux-4.9.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.9.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.9.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2020-01-04T12:40:06Z</updated>
<entry>
<title>crypto: sun4i-ss - Fix 64-bit size_t warnings on sun4i-ss-hash.c</title>
<updated>2020-01-04T12:40:06Z</updated>
<author>
<name>Corentin Labbe</name>
</author>
<published>2019-11-14T10:49:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ab4180b2ac29d36de1f130d7d76d93bfc01259de'/>
<id>urn:sha1:ab4180b2ac29d36de1f130d7d76d93bfc01259de</id>
<content type='text'>
[ Upstream commit a7126603d46fe8f01aeedf589e071c6aaa6c6c39 ]

If you try to compile this driver on a 64-bit platform then you
will get warnings because it mixes size_t with unsigned int which
only works on 32-bit.

This patch fixes all of the warnings on sun4i-ss-hash.c.
Signed-off-by: Corentin Labbe &lt;clabbe.montjoie@gmail.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>crypto: sun4i-ss - Fix invalid calculation of hash end</title>
<updated>2019-05-31T13:48:16Z</updated>
<author>
<name>Corentin Labbe</name>
</author>
<published>2019-04-18T08:17:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2ed24236b933603bc25f843c5da9e48b96dd98c4'/>
<id>urn:sha1:2ed24236b933603bc25f843c5da9e48b96dd98c4</id>
<content type='text'>
[ Upstream commit f87391558acf816b48f325a493d81d45dec40da0 ]

When nbytes &lt; 4, end is wronlgy set to a negative value which, due to
uint, is then interpreted to a large value leading to a deadlock in the
following code.

This patch fix this problem.

Fixes: 6298e948215f ("crypto: sunxi-ss - Add Allwinner Security System crypto accelerator")
Signed-off-by: Corentin Labbe &lt;clabbe.montjoie@gmail.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>crypto: sunxi-ss - Add MODULE_ALIAS to sun4i-ss</title>
<updated>2018-05-25T14:13:05Z</updated>
<author>
<name>Peter Robinson</name>
</author>
<published>2018-02-11T23:15:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e422d89fb59d05fd28a2e9bd9cfb496e3f50be81'/>
<id>urn:sha1:e422d89fb59d05fd28a2e9bd9cfb496e3f50be81</id>
<content type='text'>
[ Upstream commit 7c73cf4cc2ac16465f5102437dc0a12d66671bd6 ]

The MODULE_ALIAS is required to enable the sun4i-ss driver to load
automatically when built at a module. Tested on a Cubietruck.

Fixes: 6298e948215f ("crypto: sunxi-ss - Add Allwinner Security System crypto accelerator")
Signed-off-by: Peter Robinson &lt;pbrobinson@gmail.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Signed-off-by: Sasha Levin &lt;alexander.levin@microsoft.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>crypto: sun4i-ss - mark sun4i_hash() static</title>
<updated>2016-09-22T10:32:48Z</updated>
<author>
<name>Baoyou Xie</name>
</author>
<published>2016-09-18T12:52:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8d46a5c872946ab5e1cc8ff54cac5b83d05b848d'/>
<id>urn:sha1:8d46a5c872946ab5e1cc8ff54cac5b83d05b848d</id>
<content type='text'>
We get 1 warning when building kernel with W=1:
drivers/crypto/sunxi-ss/sun4i-ss-hash.c:168:5: warning: no previous prototype for 'sun4i_hash' [-Wmissing-prototypes]

In fact, this function is only used in the file in which it is
declared and don't need a declaration, but can be made static.
So this patch marks it 'static'.

Signed-off-by: Baoyou Xie &lt;baoyou.xie@linaro.org&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: sun4i-ss - fix missing unlock on error in sun4i_hash()</title>
<updated>2016-08-24T13:04:49Z</updated>
<author>
<name>Wei Yongjun</name>
</author>
<published>2016-08-20T10:48:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b46b9d1aadf7f31eb5c0bab20cd61e71011156cf'/>
<id>urn:sha1:b46b9d1aadf7f31eb5c0bab20cd61e71011156cf</id>
<content type='text'>
Add the missing unlock before return from function sun4i_hash()
in the error handling case.

Fixes: 477d9b2e591b ("crypto: sun4i-ss - unify update/final function")
Signed-off-by: Wei Yongjun &lt;weiyj.lk@gmail.com&gt;
Acked-by: Corentin LABBE &lt;clabbe.montjoie@gmail.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: sun4i-ss - fix indentation of two crypto alg</title>
<updated>2016-08-16T09:17:02Z</updated>
<author>
<name>Corentin LABBE</name>
</author>
<published>2016-08-10T09:45:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b6ff2fdd429cffe83b576f2e1eed33a4b0f1e4fe'/>
<id>urn:sha1:b6ff2fdd429cffe83b576f2e1eed33a4b0f1e4fe</id>
<content type='text'>
Two crypto alg are badly indented, this patch fix this style issue.

Signed-off-by: LABBE Corentin &lt;clabbe.montjoie@gmail.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: sun4i-ss - Always use sun4i_tfm_ctx for storing pointer to dev ss</title>
<updated>2016-08-16T09:17:00Z</updated>
<author>
<name>Corentin LABBE</name>
</author>
<published>2016-08-10T09:45:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9b17e5ad7831cde78314f96445cfb4a9945c6c68'/>
<id>urn:sha1:9b17e5ad7831cde78314f96445cfb4a9945c6c68</id>
<content type='text'>
The dev *ss is stored both in sun4i_tfm_ctx and sun4i_req_ctx.
Since this pointer will never be changed during tfm life, it is better
to remove it from sun4i_req_ctx.

Signed-off-by: LABBE Corentin &lt;clabbe.montjoie@gmail.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: sun4i-ss - fix spelling</title>
<updated>2016-08-16T09:16:59Z</updated>
<author>
<name>Corentin LABBE</name>
</author>
<published>2016-08-10T09:45:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=933e7e3ab239fe7fad5d64f3e2828618b3568e8c'/>
<id>urn:sha1:933e7e3ab239fe7fad5d64f3e2828618b3568e8c</id>
<content type='text'>
Two words are badly spelled, this patch respell them.

Signed-off-by: LABBE Corentin &lt;clabbe.montjoie@gmail.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: sun4i-ss - clean unused ss</title>
<updated>2016-08-16T09:16:57Z</updated>
<author>
<name>Corentin LABBE</name>
</author>
<published>2016-08-10T09:45:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d98a949bb852c7bc87ffc87c883a8c02e0ee0d5b'/>
<id>urn:sha1:d98a949bb852c7bc87ffc87c883a8c02e0ee0d5b</id>
<content type='text'>
The ss variable is never used, remove it.

Signed-off-by: LABBE Corentin &lt;clabbe.montjoie@gmail.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: sun4i-ss - unify update/final function</title>
<updated>2016-08-16T09:16:56Z</updated>
<author>
<name>Corentin LABBE</name>
</author>
<published>2016-08-10T09:45:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=477d9b2e591b8da6901b7c64cc2f08ce7499cfb6'/>
<id>urn:sha1:477d9b2e591b8da6901b7c64cc2f08ce7499cfb6</id>
<content type='text'>
The update and final functions have lots of common action.
This patch mix them in one function.
This will give some improvements:
- This will permit asynchronous support more easily
- This will permit to use finup/digest functions with some performance
  improvements

Signed-off-by: LABBE Corentin &lt;clabbe.montjoie@gmail.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
</feed>
