• Harvey Harrison's avatar
    crypto: camellia - use kernel-provided bitops, unaligned access · 32bd78e0
    Harvey Harrison authored
    Remove the private implementation of 32-bit rotation and unaligned
    access with byteswapping.
    
    As a bonus, fixes sparse warnings:
    crypto/camellia.c:602:2: warning: cast to restricted __be32
    crypto/camellia.c:603:2: warning: cast to restricted __be32
    crypto/camellia.c:604:2: warning: cast to restricted __be32
    crypto/camellia.c:605:2: warning: cast to restricted __be32
    crypto/camellia.c:710:2: warning: cast to restricted __be32
    crypto/camellia.c:711:2: warning: cast to restricted __be32
    crypto/camellia.c:712:2: warning: cast to restricted __be32
    crypto/camellia.c:713:2: warning: cast to restricted __be32
    crypto/camellia.c:714:2: warning: cast to restricted __be32
    crypto/camellia.c:715:2: warning: cast to restricted __be32
    crypto/camellia.c:716:2: warning: cast to restricted __be32
    crypto/camellia.c:717:2: warning: cast to restricted __be32
    
    [Thanks to Tomoyuki Okazaki for spotting the typo]
    Tested-by: default avatarCarlo E. Prelz <fluido@fluido.as>
    Signed-off-by: default avatarHarvey Harrison <harvey.harrison@gmail.com>
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    32bd78e0
camellia.c 35.1 KB