• Eric Biggers's avatar
    crypto: xts - prefix function and struct names with "xts" · a874f591
    Eric Biggers authored
    Overly-generic names can cause problems like naming collisions,
    confusing crash reports, and reduced grep-ability.  E.g. see
    commit d099ea6e ("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: default avatarEric Biggers <ebiggers@google.com>
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    a874f591
xts.c 11.7 KB