diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2016-11-22 13:08:25 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-11-28 14:23:18 +0100 |
commit | 266d05160101752a12e43bb6bbed45aea9f2e788 (patch) | |
tree | 80d6a25a956d465011f82a3c8b89085421cac4c0 /include/crypto | |
parent | crypto: cryptd - Add support for skcipher (diff) | |
download | linux-266d05160101752a12e43bb6bbed45aea9f2e788.tar.xz linux-266d05160101752a12e43bb6bbed45aea9f2e788.zip |
crypto: simd - Add simd skcipher helper
This patch adds the simd skcipher helper which is meant to be
a replacement for ablk helper. It replaces the underlying blkcipher
interface with skcipher, and also presents the top-level algorithm
as an skcipher.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto')
-rw-r--r-- | include/crypto/internal/simd.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/crypto/internal/simd.h b/include/crypto/internal/simd.h new file mode 100644 index 000000000000..429509968f68 --- /dev/null +++ b/include/crypto/internal/simd.h @@ -0,0 +1,17 @@ +/* + * Shared crypto simd helpers + */ + +#ifndef _CRYPTO_INTERNAL_SIMD_H +#define _CRYPTO_INTERNAL_SIMD_H + +struct simd_skcipher_alg; + +struct simd_skcipher_alg *simd_skcipher_create_compat(const char *algname, + const char *drvname, + const char *basename); +struct simd_skcipher_alg *simd_skcipher_create(const char *algname, + const char *basename); +void simd_skcipher_free(struct simd_skcipher_alg *alg); + +#endif /* _CRYPTO_INTERNAL_SIMD_H */ |