OSDN Git Service

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)
commita874f59104304278f922215caaa9dbfb03b2a1fa
treecaacef809f813026d3c24a343d8f3a055977624f
parent10f33d391ebd4edc861685ed0566cf807a363661
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 d099ea6e6fde ("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