hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/crypto/hash_info.c
....@@ -1,13 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Hash Info: Hash algorithms information
34 *
45 * Copyright (c) 2013 Dmitry Kasatkin <d.kasatkin@samsung.com>
5
- *
6
- * This program is free software; you can redistribute it and/or modify it
7
- * under the terms of the GNU General Public License as published by the Free
8
- * Software Foundation; either version 2 of the License, or (at your option)
9
- * any later version.
10
- *
116 */
127
138 #include <linux/export.h>
....@@ -31,7 +26,9 @@
3126 [HASH_ALGO_TGR_128] = "tgr128",
3227 [HASH_ALGO_TGR_160] = "tgr160",
3328 [HASH_ALGO_TGR_192] = "tgr192",
34
- [HASH_ALGO_SM3_256] = "sm3-256",
29
+ [HASH_ALGO_SM3_256] = "sm3",
30
+ [HASH_ALGO_STREEBOG_256] = "streebog256",
31
+ [HASH_ALGO_STREEBOG_512] = "streebog512",
3532 };
3633 EXPORT_SYMBOL_GPL(hash_algo_name);
3734
....@@ -54,5 +51,7 @@
5451 [HASH_ALGO_TGR_160] = TGR160_DIGEST_SIZE,
5552 [HASH_ALGO_TGR_192] = TGR192_DIGEST_SIZE,
5653 [HASH_ALGO_SM3_256] = SM3256_DIGEST_SIZE,
54
+ [HASH_ALGO_STREEBOG_256] = STREEBOG256_DIGEST_SIZE,
55
+ [HASH_ALGO_STREEBOG_512] = STREEBOG512_DIGEST_SIZE,
5756 };
5857 EXPORT_SYMBOL_GPL(hash_digest_size);