diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2025-05-15 16:28:08 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-06-19 15:31:30 +0200 |
commit | b7c09d213119e24426013fd8925a7bd9a96f8c8e (patch) | |
tree | 018ca1c757a452309570b22d6a5a53c356105ae0 /crypto/api.c | |
parent | 58beaa1aee559c5cb9f1cd096207ef1a29be0bd7 (diff) |
crypto: lrw - Only add ecb if it is not already there
[ Upstream commit 3d73909bddc2ebb3224a8bc2e5ce00e9df70c15d ]
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: 700cb3f5fe75 ("crypto: lrw - Convert to skcipher")
Reported-by: kernel test robot <oliver.sang@intel.com>
Closes: https://lore.kernel.org/oe-lkp/202505151503.d8a6cf10-lkp@intel.com
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