]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: crypto: reduce priority of core AES cipher
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 16 Nov 2015 12:12:48 +0000 (13:12 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 18 Nov 2015 12:09:08 +0000 (12:09 +0000)
commitce7bb3625f8e7e883bf5c43324a2f87860bb34c7
treec5e8fe42b7c13894a9271f75fa0c775a44d4567a
parent3d9a18b92a7e3b48f6069f3f9fa1fb9230e84831
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: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/crypto/aes-ce-cipher.c