hash_info.h 998 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Hash Info: Hash algorithms information
  4. *
  5. * Copyright (c) 2013 Dmitry Kasatkin <[email protected]>
  6. */
  7. #ifndef _CRYPTO_HASH_INFO_H
  8. #define _CRYPTO_HASH_INFO_H
  9. #include <crypto/sha1.h>
  10. #include <crypto/sha2.h>
  11. #include <crypto/md5.h>
  12. #include <crypto/streebog.h>
  13. #include <uapi/linux/hash_info.h>
  14. /* not defined in include/crypto/ */
  15. #define RMD128_DIGEST_SIZE 16
  16. #define RMD160_DIGEST_SIZE 20
  17. #define RMD256_DIGEST_SIZE 32
  18. #define RMD320_DIGEST_SIZE 40
  19. /* not defined in include/crypto/ */
  20. #define WP512_DIGEST_SIZE 64
  21. #define WP384_DIGEST_SIZE 48
  22. #define WP256_DIGEST_SIZE 32
  23. /* not defined in include/crypto/ */
  24. #define TGR128_DIGEST_SIZE 16
  25. #define TGR160_DIGEST_SIZE 20
  26. #define TGR192_DIGEST_SIZE 24
  27. /* not defined in include/crypto/ */
  28. #define SM3256_DIGEST_SIZE 32
  29. extern const char *const hash_algo_name[HASH_ALGO__LAST];
  30. extern const int hash_digest_size[HASH_ALGO__LAST];
  31. #endif /* _CRYPTO_HASH_INFO_H */