Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 00969754 authored by Ard Biesheuvel's avatar Ard Biesheuvel Committed by Eric Biggers
Browse files

UPSTREAM: arm64: crypto: reduce priority of core AES cipher



The asynchronous, merged implementations of AES in CBC, CTR and XTS
modes are preferred when available (i.e., when instantiating ablkciphers
explicitly). However, the synchronous core AES cipher combined with the
generic CBC mode implementation will produce a 'cbc(aes)' blkcipher that
is callable asynchronously as well. To prevent this implementation from
being used when the accelerated asynchronous implemenation is also
available, lower its priority to 250 (i.e., below the asynchronous
module's priority of 300).

Signed-off-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
(cherry-picked from commit 08c6781cfaa196d4b257ec043c17e8746d9284e3)
Change-Id: I50cd239615906dd70bf0a1bf945d40c9d95a3c00
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
parent 073c2ede
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment