162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Hash Info: Hash algorithms information
462306a36Sopenharmony_ci *
562306a36Sopenharmony_ci * Copyright (c) 2013 Dmitry Kasatkin <d.kasatkin@samsung.com>
662306a36Sopenharmony_ci */
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci#ifndef _CRYPTO_HASH_INFO_H
962306a36Sopenharmony_ci#define _CRYPTO_HASH_INFO_H
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ci#include <crypto/sha1.h>
1262306a36Sopenharmony_ci#include <crypto/sha2.h>
1362306a36Sopenharmony_ci#include <crypto/md5.h>
1462306a36Sopenharmony_ci#include <crypto/streebog.h>
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ci#include <uapi/linux/hash_info.h>
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_ci/* not defined in include/crypto/ */
1962306a36Sopenharmony_ci#define RMD128_DIGEST_SIZE      16
2062306a36Sopenharmony_ci#define RMD160_DIGEST_SIZE	20
2162306a36Sopenharmony_ci#define RMD256_DIGEST_SIZE      32
2262306a36Sopenharmony_ci#define RMD320_DIGEST_SIZE      40
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ci/* not defined in include/crypto/ */
2562306a36Sopenharmony_ci#define WP512_DIGEST_SIZE	64
2662306a36Sopenharmony_ci#define WP384_DIGEST_SIZE	48
2762306a36Sopenharmony_ci#define WP256_DIGEST_SIZE	32
2862306a36Sopenharmony_ci
2962306a36Sopenharmony_ci/* not defined in include/crypto/ */
3062306a36Sopenharmony_ci#define TGR128_DIGEST_SIZE 16
3162306a36Sopenharmony_ci#define TGR160_DIGEST_SIZE 20
3262306a36Sopenharmony_ci#define TGR192_DIGEST_SIZE 24
3362306a36Sopenharmony_ci
3462306a36Sopenharmony_ci/* not defined in include/crypto/ */
3562306a36Sopenharmony_ci#define SM3256_DIGEST_SIZE 32
3662306a36Sopenharmony_ci
3762306a36Sopenharmony_ciextern const char *const hash_algo_name[HASH_ALGO__LAST];
3862306a36Sopenharmony_ciextern const int hash_digest_size[HASH_ALGO__LAST];
3962306a36Sopenharmony_ci
4062306a36Sopenharmony_ci#endif /* _CRYPTO_HASH_INFO_H */
41