18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Hash Info: Hash algorithms information
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright (c) 2013 Dmitry Kasatkin <d.kasatkin@samsung.com>
68c2ecf20Sopenharmony_ci */
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci#ifndef _CRYPTO_HASH_INFO_H
98c2ecf20Sopenharmony_ci#define _CRYPTO_HASH_INFO_H
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#include <crypto/sha.h>
128c2ecf20Sopenharmony_ci#include <crypto/md5.h>
138c2ecf20Sopenharmony_ci#include <crypto/streebog.h>
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci#include <uapi/linux/hash_info.h>
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci/* not defined in include/crypto/ */
188c2ecf20Sopenharmony_ci#define RMD128_DIGEST_SIZE      16
198c2ecf20Sopenharmony_ci#define RMD160_DIGEST_SIZE	20
208c2ecf20Sopenharmony_ci#define RMD256_DIGEST_SIZE      32
218c2ecf20Sopenharmony_ci#define RMD320_DIGEST_SIZE      40
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci/* not defined in include/crypto/ */
248c2ecf20Sopenharmony_ci#define WP512_DIGEST_SIZE	64
258c2ecf20Sopenharmony_ci#define WP384_DIGEST_SIZE	48
268c2ecf20Sopenharmony_ci#define WP256_DIGEST_SIZE	32
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci/* not defined in include/crypto/ */
298c2ecf20Sopenharmony_ci#define TGR128_DIGEST_SIZE 16
308c2ecf20Sopenharmony_ci#define TGR160_DIGEST_SIZE 20
318c2ecf20Sopenharmony_ci#define TGR192_DIGEST_SIZE 24
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ci/* not defined in include/crypto/ */
348c2ecf20Sopenharmony_ci#define SM3256_DIGEST_SIZE 32
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ciextern const char *const hash_algo_name[HASH_ALGO__LAST];
378c2ecf20Sopenharmony_ciextern const int hash_digest_size[HASH_ALGO__LAST];
388c2ecf20Sopenharmony_ci
398c2ecf20Sopenharmony_ci#endif /* _CRYPTO_HASH_INFO_H */
40