Commit 270b6f13 authored by Herbert Xu's avatar Herbert Xu
Browse files

crypto: xts - Only add ecb if it is not already there



Only add ecb to the cipher name if it isn't already ecb.

Also use memcmp instead of strncmp since these strings are all
stored in an array of length CRYPTO_MAX_ALG_NAME.

Fixes: f1c131b4 ("crypto: xts - Convert to skcipher")
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 3d73909b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment