diff options
author | Martin Schiller <mschiller@tdt.de> | 2016-08-18 12:03:17 +0200 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2016-08-20 05:33:09 +0200 |
commit | 070edfd92f8f83a93312a7df5f59048d74286584 (patch) | |
tree | 4de5631096240d062a879323964241d5ec605ed0 /package/kernel/lantiq/ltq-deu/src/ifxmips_sha1.c | |
parent | 93916613943ae095027f01acc521b4fcf174dea2 (diff) | |
download | mtk-20170518-070edfd92f8f83a93312a7df5f59048d74286584.zip mtk-20170518-070edfd92f8f83a93312a7df5f59048d74286584.tar.gz mtk-20170518-070edfd92f8f83a93312a7df5f59048d74286584.tar.bz2 |
ltq-deu: fix cra_priority
With the default priority of 0, the DEU algos would be overlapped
by the generic algos (if available).
To fix this, set the cra_priority of the hardware algos to the
recommended value of 300/400.
Signed-off-by: Martin Schiller <mschiller@tdt.de>
Diffstat (limited to 'package/kernel/lantiq/ltq-deu/src/ifxmips_sha1.c')
-rw-r--r-- | package/kernel/lantiq/ltq-deu/src/ifxmips_sha1.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/package/kernel/lantiq/ltq-deu/src/ifxmips_sha1.c b/package/kernel/lantiq/ltq-deu/src/ifxmips_sha1.c index 2492549..1471574 100644 --- a/package/kernel/lantiq/ltq-deu/src/ifxmips_sha1.c +++ b/package/kernel/lantiq/ltq-deu/src/ifxmips_sha1.c @@ -258,6 +258,7 @@ static struct shash_alg ifxdeu_sha1_alg = { .base = { .cra_name = "sha1", .cra_driver_name= "ifxdeu-sha1", + .cra_priority = 300, .cra_flags = CRYPTO_ALG_TYPE_DIGEST, .cra_blocksize = SHA1_HMAC_BLOCK_SIZE, .cra_module = THIS_MODULE, |