<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/linux.git/crypto/tcrypt.c, branch v4.4.27</title>
<subtitle>Linux Kernel
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v4.4.27</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v4.4.27'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/'/>
<updated>2015-09-21T14:00:36Z</updated>
<entry>
<title>crypto: tcrypt - avoid mapping from module image addresses</title>
<updated>2015-09-21T14:00:36Z</updated>
<author>
<name>Horia Geant?</name>
<email>horia.geanta@freescale.com</email>
</author>
<published>2015-08-27T15:38:36Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=f074f7b103a915edb1edf833f96a902adeb374cf'/>
<id>urn:sha1:f074f7b103a915edb1edf833f96a902adeb374cf</id>
<content type='text'>
The output buffer in test_ahash_speed will point to an address located
within the tcrypt module image.
This causes problems when trying to DMA map the buffer.
For e.g. on ARM-based LS1021A, a page fault occurs within the
DMA API when trying to access the struct page returned by
virt_to_page(output):

insmod tcrypt.ko mode=403

testing speed of async sha1 (sha1-caam)
test  0 (   16 byte blocks,   16 bytes per update,   1 updates):
Unable to handle kernel paging request at virtual address f07e9080
pgd = e58d0e00
[f07e9080] *pgd=80000080007003, *pmd=00000000
Internal error: Oops: 206 [#1] SMP THUMB2
Modules linked in: tcrypt(+)
CPU: 1 PID: 1119 Comm: insmod Not tainted 4.2.0-rc1-256134-gbf433416e675 #1
Hardware name: Freescale LS1021A
task: ea063900 ti: e5a34000 task.ti: e5a34000
PC is at dma_cache_maint_page+0x38/0xd0
LR is at __dma_page_cpu_to_dev+0x15/0x64
pc : [&lt;800155a0&gt;]    lr : [&lt;8001564d&gt;]    psr: 000f0033
sp : e5a35ca0  ip : 8063df00  fp : f07e9080
r10: 00000cd0  r9 : 8063df00  r8 : 805a2f04
r7 : 0017f804  r6 : 00000002  r5 : ee7f9000  r4 : 00000014
r3 : 80612d40  r2 : 01ff0080  r1 : 00000380  r0 : ee7f9000
Flags: nzcv  IRQs on  FIQs on  Mode SVC_32  ISA Thumb  Segment user
Control: 70c5387d  Table: e58d0e00  DAC: 9b7ede70
Process insmod (pid: 1119, stack limit = 0xe5a34210)
Stack: (0xe5a35ca0 to 0xe5a36000)
[...]
[&lt;800155a0&gt;] (dma_cache_maint_page) from [&lt;8001564d&gt;] (__dma_page_cpu_to_dev+0x15/0x64)
[&lt;8001564d&gt;] (__dma_page_cpu_to_dev) from [&lt;800156eb&gt;] (arm_dma_map_page+0x1f/0x44)
[&lt;800156eb&gt;] (arm_dma_map_page) from [&lt;802935e3&gt;] (ahash_digest+0x35f/0x510)
[&lt;802935e3&gt;] (ahash_digest) from [&lt;7f800d03&gt;] (test_ahash_speed.constprop.6+0x24a/0x4e4 [tcrypt])
[&lt;7f800d03&gt;] (test_ahash_speed.constprop.6 [tcrypt]) from [&lt;7f802fd5&gt;] (do_test+0x1898/0x2058 [tcrypt])
[&lt;7f802fd5&gt;] (do_test [tcrypt]) from [&lt;7f80802f&gt;] (tcrypt_mod_init+0x2e/0x63 [tcrypt])
[&lt;7f80802f&gt;] (tcrypt_mod_init [tcrypt]) from [&lt;80009517&gt;] (do_one_initcall+0xb3/0x134)
[&lt;80009517&gt;] (do_one_initcall) from [&lt;80351ec7&gt;] (do_init_module+0x3b/0x13c)
[&lt;80351ec7&gt;] (do_init_module) from [&lt;8005cc3f&gt;] (load_module+0x97b/0x9dc)
[&lt;8005cc3f&gt;] (load_module) from [&lt;8005cd8d&gt;] (SyS_finit_module+0x35/0x3e)
[&lt;8005cd8d&gt;] (SyS_finit_module) from [&lt;8000d101&gt;] (ret_fast_syscall+0x1/0x4c)
Code: 1aba 0152 eb00 0b02 (5882) 0f92

addr2line -f -i -e vmlinux 800155a0
page_zonenum
include/linux/mm.h:728
page_zone
include/linux/mm.h:881
dma_cache_maint_page
arch/arm/mm/dma-mapping.c:822

Signed-off-by: Horia Geant? &lt;horia.geanta@freescale.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: aead - Remove CRYPTO_ALG_AEAD_NEW flag</title>
<updated>2015-08-17T08:53:53Z</updated>
<author>
<name>Herbert Xu</name>
<email>herbert@gondor.apana.org.au</email>
</author>
<published>2015-08-13T09:29:06Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=5e4b8c1fcc70016f43926203ae1820c3b380d5cd'/>
<id>urn:sha1:5e4b8c1fcc70016f43926203ae1820c3b380d5cd</id>
<content type='text'>
This patch removes the CRYPTO_ALG_AEAD_NEW flag now that everyone
has been converted.

Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: tcrypt - Add ChaCha20/Poly1305 speed tests</title>
<updated>2015-07-17T13:20:20Z</updated>
<author>
<name>Martin Willi</name>
<email>martin@strongswan.org</email>
</author>
<published>2015-07-16T17:13:59Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=2dce063a31ae6cbaf39964663fc59d10bef38d15'/>
<id>urn:sha1:2dce063a31ae6cbaf39964663fc59d10bef38d15</id>
<content type='text'>
Adds individual ChaCha20 and Poly1305 and a combined rfc7539esp AEAD speed
test using mode numbers 214, 321 and 213. For Poly1305 we add a specific
speed template, as it expects the key prepended to the input data.

Signed-off-by: Martin Willi &lt;martin@strongswan.org&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: tcrypt - Add support for new IV convention</title>
<updated>2015-07-14T06:56:46Z</updated>
<author>
<name>Herbert Xu</name>
<email>herbert@gondor.apana.org.au</email>
</author>
<published>2015-07-08T23:17:26Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=34a1c740ea87b5077d1060448a05db14f5f29960'/>
<id>urn:sha1:34a1c740ea87b5077d1060448a05db14f5f29960</id>
<content type='text'>
This patch allows the AEAD speed tests to cope with the new seqiv
calling convention as well as the old one.

Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: tcrypt - Fix AEAD speed tests</title>
<updated>2015-07-08T07:18:47Z</updated>
<author>
<name>Vutla, Lokesh</name>
<email>lokeshvutla@ti.com</email>
</author>
<published>2015-07-07T15:31:49Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=1425d2d17f7309c65e2bd124e0ce8ace743b17f2'/>
<id>urn:sha1:1425d2d17f7309c65e2bd124e0ce8ace743b17f2</id>
<content type='text'>
The AEAD speed tests doesn't do a wait_for_completition,
if the return value is EINPROGRESS or EBUSY.
Fixing it here.
Also add a test case for gcm(aes).

Signed-off-by: Lokesh Vutla &lt;lokeshvutla@ti.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: tcrypt - Fixed AEAD speed test setup</title>
<updated>2015-06-18T06:45:33Z</updated>
<author>
<name>Herbert Xu</name>
<email>herbert@gondor.apana.org.au</email>
</author>
<published>2015-06-17T06:05:26Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=31267270a355945e172de4927140dd26ff292461'/>
<id>urn:sha1:31267270a355945e172de4927140dd26ff292461</id>
<content type='text'>
The AEAD speed test SG list setup did not correctly mark the AD,
potentially causing a crash.

Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: tcrypt - Add rfc4309(ccm(aes)) speed test</title>
<updated>2015-06-18T06:45:32Z</updated>
<author>
<name>Herbert Xu</name>
<email>herbert@gondor.apana.org.au</email>
</author>
<published>2015-06-17T06:04:21Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=4e4aab63d7456fb3db108ad8eead8e330d5fb958'/>
<id>urn:sha1:4e4aab63d7456fb3db108ad8eead8e330d5fb958</id>
<content type='text'>
This patch adds a speed test for rfc4309(ccm(aes)) as mode 212.

Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: tcrypt - Switch to new AEAD interface</title>
<updated>2015-05-28T03:23:21Z</updated>
<author>
<name>Herbert Xu</name>
<email>herbert@gondor.apana.org.au</email>
</author>
<published>2015-05-27T08:03:51Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=a3f2185a29df084611641e964aa93d1a6ee2212c'/>
<id>urn:sha1:a3f2185a29df084611641e964aa93d1a6ee2212c</id>
<content type='text'>
This patch makes use of the new AEAD interface which uses a single
SG list instead of separate lists for the AD and plain text.

Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: tcrypt - Include crypto/aead.h</title>
<updated>2015-04-23T06:18:11Z</updated>
<author>
<name>Herbert Xu</name>
<email>herbert@gondor.apana.org.au</email>
</author>
<published>2015-04-22T07:06:30Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=1ce5a04d9f3e8f1f25aa1d6da8612bfeeca7b306'/>
<id>urn:sha1:1ce5a04d9f3e8f1f25aa1d6da8612bfeeca7b306</id>
<content type='text'>
All users of AEAD should include crypto/aead.h instead of
include/linux/crypto.h.

Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Acked-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>crypto: tcrypt - Include linux/fips.h for fips_enabled</title>
<updated>2015-04-23T06:18:09Z</updated>
<author>
<name>Herbert Xu</name>
<email>herbert@gondor.apana.org.au</email>
</author>
<published>2015-04-22T05:25:57Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=daf0944cfb1fd2f6ca17fd4ed1ecbbef63d8f8f8'/>
<id>urn:sha1:daf0944cfb1fd2f6ca17fd4ed1ecbbef63d8f8f8</id>
<content type='text'>
All users of fips_enabled should include linux/fips.h directly
instead of getting it through internal.h which is reserved for
internal crypto API implementors.

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