• Dan Streetman's avatar
    crypto: 842 - change 842 alg to use software · 2062c5b6
    Dan Streetman authored
    Change the crypto 842 compression alg to use the software 842 compression
    and decompression library.  Add the crypto driver_name as "842-generic".
    Remove the fallback to LZO compression.
    
    Previously, this crypto compression alg attemped 842 compression using
    PowerPC hardware, and fell back to LZO compression and decompression if
    the 842 PowerPC hardware was unavailable or failed.  This should not
    fall back to any other compression method, however; users of this crypto
    compression alg can fallback if desired, and transparent fallback tricks
    callers into thinking they are getting 842 compression when they actually
    get LZO compression - the failure of the 842 hardware should not be
    transparent to the caller.
    
    The crypto compression alg for a hardware device also should not be located
    in crypto/ so this is now a software-only implementation that uses the 842
    software compression/decompression library.
    Signed-off-by: default avatarDan Streetman <ddstreet@ieee.org>
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    2062c5b6
842.c 2.63 KB