<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/crypto/testmgr.c, branch linux-4.14.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.14.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.14.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2019-03-23T13:35:18Z</updated>
<entry>
<title>crypto: testmgr - skip crc32c context test for ahash algorithms</title>
<updated>2019-03-23T13:35:18Z</updated>
<author>
<name>Eric Biggers</name>
</author>
<published>2019-01-24T04:57:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=29ef5d0ff32ea27be5170efe57e352686e92b9b7'/>
<id>urn:sha1:29ef5d0ff32ea27be5170efe57e352686e92b9b7</id>
<content type='text'>
commit eb5e6730db98fcc4b51148b4a819fa4bf864ae54 upstream.

Instantiating "cryptd(crc32c)" causes a crypto self-test failure because
the crypto_alloc_shash() in alg_test_crc32c() fails.  This is because
cryptd(crc32c) is an ahash algorithm, not a shash algorithm; so it can
only be accessed through the ahash API, unlike shash algorithms which
can be accessed through both the ahash and shash APIs.

As the test is testing the shash descriptor format which is only
applicable to shash algorithms, skip it for ahash algorithms.

(Note that it's still important to fix crypto self-test failures even
 for weird algorithm instantiations like cryptd(crc32c) that no one
 would really use; in fips_enabled mode unprivileged users can use them
 to panic the kernel, and also they prevent treating a crypto self-test
 failure as a bug when fuzzing the kernel.)

Fixes: 8e3ee85e68c5 ("crypto: crc32c - Test descriptor context format")
Cc: stable@vger.kernel.org
Signed-off-by: Eric Biggers &lt;ebiggers@google.com&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>crypto: testmgr - Reenable sha1/aes in FIPS mode</title>
<updated>2017-06-28T14:18:58Z</updated>
<author>
<name>Herbert Xu</name>
</author>
<published>2017-06-28T11:09:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bcf741cb779283081db47853264cc94854e7ad83'/>
<id>urn:sha1:bcf741cb779283081db47853264cc94854e7ad83</id>
<content type='text'>
The combination of sha1 and aes was disabled in FIPS Mode
accidentally.  This patch reenables it.

Fixes: 284a0f6e87b0 ("crypto: testmgr - Disable fips-allowed for...")
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Acked-by: Stephan Müller &lt;smueller@chronox.de&gt;
</content>
</entry>
<entry>
<title>crypto: testmgr - add testvector for pkcs1pad(rsa)</title>
<updated>2017-06-20T03:21:29Z</updated>
<author>
<name>Stephan Mueller</name>
</author>
<published>2017-06-12T21:27:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1207107c7168f779643c91e30f8d6c2f8a4afd4d'/>
<id>urn:sha1:1207107c7168f779643c91e30f8d6c2f8a4afd4d</id>
<content type='text'>
The PKCS#1 RSA implementation is provided with a self test with RSA 2048
and SHA-256. This self test implicitly covers other RSA keys and other
hashes. Also, this self test implies that the pkcs1pad(rsa) is FIPS
140-2 compliant.

Signed-off-by: Stephan Mueller &lt;smueller@chronox.de&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: testmgr - use consistent format for errors</title>
<updated>2017-06-19T06:19:53Z</updated>
<author>
<name>Gilad Ben-Yossef</name>
</author>
<published>2017-06-05T05:33:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cf3f9609c9b2f36760f8181d11b8085c357c27ee'/>
<id>urn:sha1:cf3f9609c9b2f36760f8181d11b8085c357c27ee</id>
<content type='text'>
Fix inconsistent format and spelling in hash tests error messages.

Signed-off-by: Gilad Ben-Yossef &lt;gilad@benyossef.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: testmgr - add genkey kpp test</title>
<updated>2017-06-10T04:04:36Z</updated>
<author>
<name>Tudor-Dan Ambarus</name>
</author>
<published>2017-05-30T14:52:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=47d3fd390e899e0403da35733b75832eacfbbc3f'/>
<id>urn:sha1:47d3fd390e899e0403da35733b75832eacfbbc3f</id>
<content type='text'>
The test considers a party that already has a private-public
key pair and a party that provides a NULL key. The kernel will
generate the private-public key pair for the latter, computes
the shared secret on both ends and verifies if it's the same.

The explicit private-public key pair was copied from
the previous test vector.

Signed-off-by: Tudor Ambarus &lt;tudor.ambarus@microchip.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: scomp - add support for deflate rfc1950 (zlib)</title>
<updated>2017-04-24T10:11:08Z</updated>
<author>
<name>Giovanni Cabiddu</name>
</author>
<published>2017-04-21T20:54:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a368f43d6e3a001e684e9191a27df384fbff12f5'/>
<id>urn:sha1:a368f43d6e3a001e684e9191a27df384fbff12f5</id>
<content type='text'>
Add scomp backend for zlib-deflate compression algorithm.
This backend outputs data using the format defined in rfc1950
(raw deflate surrounded by zlib header and footer).

Signed-off-by: Giovanni Cabiddu &lt;giovanni.cabiddu@intel.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: testmgr - Allow ecb(cipher_null) in FIPS mode</title>
<updated>2017-04-24T10:11:04Z</updated>
<author>
<name>Milan Broz</name>
</author>
<published>2017-04-21T11:03:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6175ca2ba7d2c4265d6d5590d699fbd907b24708'/>
<id>urn:sha1:6175ca2ba7d2c4265d6d5590d699fbd907b24708</id>
<content type='text'>
The cipher_null is not a real cipher, FIPS mode should not restrict its use.

It is used for several tests (for example in cryptsetup testsuite) and also
temporarily for reencryption of not yet encrypted device in cryptsetup-reencrypt tool.

Problem is easily reproducible with
  cryptsetup benchmark -c null

Signed-off-by: Milan Broz &lt;gmazyland@gmail.com&gt;
Acked-by: Stephan Müller &lt;smueller@chronox.de&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: testmgr - replace compression known answer test</title>
<updated>2017-04-21T12:30:50Z</updated>
<author>
<name>Giovanni Cabiddu</name>
</author>
<published>2017-04-19T13:27:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a9943a0ad19f4a23bb5c4217df0fb37feb7ac339'/>
<id>urn:sha1:a9943a0ad19f4a23bb5c4217df0fb37feb7ac339</id>
<content type='text'>
Compression implementations might return valid outputs that
do not match what specified in the test vectors.
For this reason, the testmgr might report that a compression
implementation failed the test even if the data produced
by the compressor is correct.
This implements a decompress-and-verify test for acomp
compression tests rather than a known answer test.

Signed-off-by: Giovanni Cabiddu &lt;giovanni.cabiddu@intel.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: testmgr - mark ctr(des3_ede) as fips_allowed</title>
<updated>2017-03-24T14:03:01Z</updated>
<author>
<name>Marcelo Cerri</name>
</author>
<published>2017-03-20T20:28:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0d8da104840ab4244fe122e5b25570aa13fb00c0'/>
<id>urn:sha1:0d8da104840ab4244fe122e5b25570aa13fb00c0</id>
<content type='text'>
3DES is missing the fips_allowed flag for CTR mode.

Signed-off-by: Marcelo Henrique Cerri &lt;marcelo.cerri@canonical.com&gt;
Acked-by: Stephan Mueller &lt;smueller@chronox.de&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: testmgr - constify all test vectors</title>
<updated>2017-03-09T10:34:39Z</updated>
<author>
<name>Eric Biggers</name>
</author>
<published>2017-02-24T23:46:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b13b1e0c6b171b4f6ad94dd99020708719983494'/>
<id>urn:sha1:b13b1e0c6b171b4f6ad94dd99020708719983494</id>
<content type='text'>
Cryptographic test vectors should never be modified, so constify them to
enforce this at both compile-time and run-time.  This moves a significant
amount of data from .data to .rodata when the crypto tests are enabled.

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