• Ard Biesheuvel's avatar
    arm64: crypto: reduce priority of core AES cipher · 08c6781c
    Ard Biesheuvel authored
    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>
    08c6781c
aes-ce-cipher.c 6.28 KB