9
0
Fork 0
barebox/crypto
Sascha Hauer 2b5bdb47cf crypto: fix selecting of digests
SHA1 is meant as a boolean option which is true when sha1 support is available.
This works because the providers (DIGEST_SHA1_GENERIC and DIGEST_SHA1_ARM) have
a 'select SHA1'. However, consumers like the sha1sum command do a 'select SHA1'
to enable SHA1 support. This of course does not work; selecting SHA1 will not
select any of the SHA1 providers.

This is broken for all digest consumers. We have to explicitly select a digest
provider, that is DIGEST_*_GENERIC to enable the corresponding digest.

This means now we will always have the generic digest in the binary, even
when an optimized one is enabled. There is no sane way in Kconfig to
"select provider for feature xy", so let's live with the overhead in the binary.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-08-28 08:00:30 +02:00
..
Kconfig crypto: fix selecting of digests 2015-08-28 08:00:30 +02:00
Makefile crypto: prepare to allow multiple digest driver 2015-03-27 07:49:45 +01:00
crc7.c crypto: Add crc7 function 2011-11-25 12:37:25 +01:00
crc16.c crc16: Make buffer argument const 2015-06-08 13:47:54 +02:00
crc32.c scripts: bareboxcrc32 as host and target userspacetool 2013-12-04 17:17:06 +01:00
digest.c crypto: digest: mark signature argument as const 2015-05-26 09:27:35 +02:00
hmac.c crypto: hmac: move register to hmac 2015-03-27 07:49:45 +01:00
md5.c crypto: hmac: move register to hmac 2015-03-27 07:49:45 +01:00
pbkdf2.c crypto: add pbkdf2 hmac key generator 2015-03-19 07:46:22 +01:00
sha1.c crypto: sha1: switch to linux implementation 2015-03-27 07:49:45 +01:00
sha2.c crypto: sha256: switch to linux implementation 2015-03-27 07:49:45 +01:00
sha4.c crypto: sha512: switch to linux implementation 2015-03-27 07:49:45 +01:00