0001
0002
0003
0004
0005
0006
0007
0008 #ifndef _CRYPTO_HASH_INFO_H
0009 #define _CRYPTO_HASH_INFO_H
0010
0011 #include <crypto/sha1.h>
0012 #include <crypto/sha2.h>
0013 #include <crypto/md5.h>
0014 #include <crypto/streebog.h>
0015
0016 #include <uapi/linux/hash_info.h>
0017
0018
0019 #define RMD128_DIGEST_SIZE 16
0020 #define RMD160_DIGEST_SIZE 20
0021 #define RMD256_DIGEST_SIZE 32
0022 #define RMD320_DIGEST_SIZE 40
0023
0024
0025 #define WP512_DIGEST_SIZE 64
0026 #define WP384_DIGEST_SIZE 48
0027 #define WP256_DIGEST_SIZE 32
0028
0029
0030 #define TGR128_DIGEST_SIZE 16
0031 #define TGR160_DIGEST_SIZE 20
0032 #define TGR192_DIGEST_SIZE 24
0033
0034
0035 #define SM3256_DIGEST_SIZE 32
0036
0037 extern const char *const hash_algo_name[HASH_ALGO__LAST];
0038 extern const int hash_digest_size[HASH_ALGO__LAST];
0039
0040 #endif