diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2025-05-15 16:34:04 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-06-19 15:31:30 +0200 |
commit | 5ed92ad1b7d12bbffa6fd1cac7ea64d58d211625 (patch) | |
tree | a7531aabc072eeec1d5eac4b76249cf0c485a6f2 /crypto/api.c | |
parent | b7c09d213119e24426013fd8925a7bd9a96f8c8e (diff) |
crypto: xts - Only add ecb if it is not already there
[ Upstream commit 270b6f13454cb7f2f7058c50df64df409c5dcf55 ]
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: f1c131b45410 ("crypto: xts - Convert to skcipher")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'crypto/api.c')
0 files changed, 0 insertions, 0 deletions