xref: /openbmc/linux/include/crypto/internal/simd.h (revision cfdfc14e)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Shared crypto simd helpers
4  */
5 
6 #ifndef _CRYPTO_INTERNAL_SIMD_H
7 #define _CRYPTO_INTERNAL_SIMD_H
8 
9 struct simd_skcipher_alg;
10 struct skcipher_alg;
11 
12 struct simd_skcipher_alg *simd_skcipher_create_compat(const char *algname,
13 						      const char *drvname,
14 						      const char *basename);
15 struct simd_skcipher_alg *simd_skcipher_create(const char *algname,
16 					       const char *basename);
17 void simd_skcipher_free(struct simd_skcipher_alg *alg);
18 
19 int simd_register_skciphers_compat(struct skcipher_alg *algs, int count,
20 				   struct simd_skcipher_alg **simd_algs);
21 
22 void simd_unregister_skciphers(struct skcipher_alg *algs, int count,
23 			       struct simd_skcipher_alg **simd_algs);
24 
25 #endif /* _CRYPTO_INTERNAL_SIMD_H */
26