diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2015-03-25 12:56:15 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-03-27 07:49:45 +0100 |
commit | c3fe3d705949c83029560c8eebb280dff6fc50d6 (patch) | |
tree | db0f864c53cea7e7dc7ead2c49dfec93512288ee /crypto/md5.c | |
parent | ab5b2c35e143a87483700ca92d7fd50292a891d0 (diff) | |
download | barebox-c3fe3d705949c83029560c8eebb280dff6fc50d6.tar.gz |
crypto: hmac: move register to hmac
As we will use the best sha algo at runtime
Add a new init level crypto_initcall to ensure that all the sha present
before hmac
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'crypto/md5.c')
-rw-r--r-- | crypto/md5.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/crypto/md5.c b/crypto/md5.c index 74c9b706f0..23892babce 100644 --- a/crypto/md5.c +++ b/crypto/md5.c @@ -305,12 +305,6 @@ static struct digest_algo md5 = { static int md5_digest_register(void) { - int ret; - - ret = digest_algo_register(&md5); - if (ret) - return ret; - - return digest_hmac_register(&md5, 64); + return digest_algo_register(&md5); } device_initcall(md5_digest_register); |