crypto: simd - allow registering multiple algorithms at once
authorEric Biggers <ebiggers@google.com>
Tue, 20 Feb 2018 07:47:59 +0000 (23:47 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 2 Mar 2018 16:03:17 +0000 (00:03 +0800)
commitd14f0a1fc488af563ec3b3767383190d2b331b5e
tree579cdc00c95c78a44cd150ceda38b7a0a300514a
parentd800e3430e51e3450d8fa25b2eb2a50e5e413f29
crypto: simd - allow registering multiple algorithms at once

Add a function to crypto_simd that registers an array of skcipher
algorithms, then allocates and registers the simd wrapper algorithms for
them.  It assumes the naming scheme where the names of the underlying
algorithms are prefixed with two underscores.

Also add the corresponding 'unregister' function.

Most of the x86 crypto modules will be able to use these.

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