xref: /OK3568_Linux_fs/kernel/crypto/fips140-defs.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-only */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * Copyright 2021 Google LLC
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  * This file is automatically included by all files built into fips140.ko, via
6*4882a593Smuzhiyun  * the "-include" compiler flag.  It redirects all calls to algorithm
7*4882a593Smuzhiyun  * registration functions to the wrapper functions defined within the module.
8*4882a593Smuzhiyun  */
9*4882a593Smuzhiyun 
10*4882a593Smuzhiyun #define aead_register_instance		fips140_aead_register_instance
11*4882a593Smuzhiyun #define ahash_register_instance		fips140_ahash_register_instance
12*4882a593Smuzhiyun #define crypto_register_aead		fips140_crypto_register_aead
13*4882a593Smuzhiyun #define crypto_register_aeads		fips140_crypto_register_aeads
14*4882a593Smuzhiyun #define crypto_register_ahash		fips140_crypto_register_ahash
15*4882a593Smuzhiyun #define crypto_register_ahashes		fips140_crypto_register_ahashes
16*4882a593Smuzhiyun #define crypto_register_alg		fips140_crypto_register_alg
17*4882a593Smuzhiyun #define crypto_register_algs		fips140_crypto_register_algs
18*4882a593Smuzhiyun #define crypto_register_rng		fips140_crypto_register_rng
19*4882a593Smuzhiyun #define crypto_register_rngs		fips140_crypto_register_rngs
20*4882a593Smuzhiyun #define crypto_register_shash		fips140_crypto_register_shash
21*4882a593Smuzhiyun #define crypto_register_shashes		fips140_crypto_register_shashes
22*4882a593Smuzhiyun #define crypto_register_skcipher	fips140_crypto_register_skcipher
23*4882a593Smuzhiyun #define crypto_register_skciphers	fips140_crypto_register_skciphers
24*4882a593Smuzhiyun #define shash_register_instance		fips140_shash_register_instance
25*4882a593Smuzhiyun #define skcipher_register_instance	fips140_skcipher_register_instance
26