]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: xts - prefix function and struct names with "xts"
authorEric Biggers <ebiggers@google.com>
Sat, 11 Jul 2020 03:34:28 +0000 (20:34 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 16 Jul 2020 11:49:13 +0000 (21:49 +1000)
commit3b4c65f1f80d869ae4bcae7787475f707c5b2ea5
treecaacef809f813026d3c24a343d8f3a055977624f
parent9b781c76baeb5886f0a6d8db93cfd8104ea61199
crypto: xts - prefix function and struct names with "xts"

Overly-generic names can cause problems like naming collisions,
confusing crash reports, and reduced grep-ability.  E.g. see
commit 9513dd6dacc9 ("crypto - Avoid free() namespace collision").

Clean this up for the xts template by prefixing the names with "xts_".

(I didn't use "crypto_xts_" instead because that seems overkill.)

Also constify the tfm context in a couple places, and make
xts_free_instance() use the instance context structure so that it
doesn't just assume the crypto_skcipher_spawn is at the beginning.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/xts.c