fips140-defs.h 1.3 KB

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