hash_info.c (b7d3622a39fde7658170b7f3cf6c6889bb8db30d) hash_info.c (5ca4c20cfd37bac6486de040e9951b3b34755238)
1/*
2 * Hash Info: Hash algorithms information
3 *
4 * 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)

--- 17 unchanged lines hidden (view full) ---

26 [HASH_ALGO_RIPE_MD_256] = "rmd256",
27 [HASH_ALGO_RIPE_MD_320] = "rmd320",
28 [HASH_ALGO_WP_256] = "wp256",
29 [HASH_ALGO_WP_384] = "wp384",
30 [HASH_ALGO_WP_512] = "wp512",
31 [HASH_ALGO_TGR_128] = "tgr128",
32 [HASH_ALGO_TGR_160] = "tgr160",
33 [HASH_ALGO_TGR_192] = "tgr192",
1/*
2 * Hash Info: Hash algorithms information
3 *
4 * 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)

--- 17 unchanged lines hidden (view full) ---

26 [HASH_ALGO_RIPE_MD_256] = "rmd256",
27 [HASH_ALGO_RIPE_MD_320] = "rmd320",
28 [HASH_ALGO_WP_256] = "wp256",
29 [HASH_ALGO_WP_384] = "wp384",
30 [HASH_ALGO_WP_512] = "wp512",
31 [HASH_ALGO_TGR_128] = "tgr128",
32 [HASH_ALGO_TGR_160] = "tgr160",
33 [HASH_ALGO_TGR_192] = "tgr192",
34 [HASH_ALGO_SM3_256] = "sm3-256",
34};
35EXPORT_SYMBOL_GPL(hash_algo_name);
36
37const int hash_digest_size[HASH_ALGO__LAST] = {
38 [HASH_ALGO_MD4] = MD5_DIGEST_SIZE,
39 [HASH_ALGO_MD5] = MD5_DIGEST_SIZE,
40 [HASH_ALGO_SHA1] = SHA1_DIGEST_SIZE,
41 [HASH_ALGO_RIPE_MD_160] = RMD160_DIGEST_SIZE,

--- 5 unchanged lines hidden (view full) ---

47 [HASH_ALGO_RIPE_MD_256] = RMD256_DIGEST_SIZE,
48 [HASH_ALGO_RIPE_MD_320] = RMD320_DIGEST_SIZE,
49 [HASH_ALGO_WP_256] = WP256_DIGEST_SIZE,
50 [HASH_ALGO_WP_384] = WP384_DIGEST_SIZE,
51 [HASH_ALGO_WP_512] = WP512_DIGEST_SIZE,
52 [HASH_ALGO_TGR_128] = TGR128_DIGEST_SIZE,
53 [HASH_ALGO_TGR_160] = TGR160_DIGEST_SIZE,
54 [HASH_ALGO_TGR_192] = TGR192_DIGEST_SIZE,
35};
36EXPORT_SYMBOL_GPL(hash_algo_name);
37
38const int hash_digest_size[HASH_ALGO__LAST] = {
39 [HASH_ALGO_MD4] = MD5_DIGEST_SIZE,
40 [HASH_ALGO_MD5] = MD5_DIGEST_SIZE,
41 [HASH_ALGO_SHA1] = SHA1_DIGEST_SIZE,
42 [HASH_ALGO_RIPE_MD_160] = RMD160_DIGEST_SIZE,

--- 5 unchanged lines hidden (view full) ---

48 [HASH_ALGO_RIPE_MD_256] = RMD256_DIGEST_SIZE,
49 [HASH_ALGO_RIPE_MD_320] = RMD320_DIGEST_SIZE,
50 [HASH_ALGO_WP_256] = WP256_DIGEST_SIZE,
51 [HASH_ALGO_WP_384] = WP384_DIGEST_SIZE,
52 [HASH_ALGO_WP_512] = WP512_DIGEST_SIZE,
53 [HASH_ALGO_TGR_128] = TGR128_DIGEST_SIZE,
54 [HASH_ALGO_TGR_160] = TGR160_DIGEST_SIZE,
55 [HASH_ALGO_TGR_192] = TGR192_DIGEST_SIZE,
56 [HASH_ALGO_SM3_256] = SM3256_DIGEST_SIZE,
55};
56EXPORT_SYMBOL_GPL(hash_digest_size);
57};
58EXPORT_SYMBOL_GPL(hash_digest_size);