diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2018-10-02 08:36:19 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-10-08 11:15:22 +0200 |
commit | dd2132e72bceb57ad1781668dc7d9c87dc1f826d (patch) | |
tree | a924d0c3d2c359d5f7604d44d8b30cc558ed3204 | |
parent | 0d9869010cbd727aa0ab48fbad0259b6590094b4 (diff) | |
download | barebox-dd2132e72bceb57ad1781668dc7d9c87dc1f826d.tar.gz barebox-dd2132e72bceb57ad1781668dc7d9c87dc1f826d.tar.xz |
digest.h: Sync hash_algo values with kernel
enum hash_algo is exported from the Kernel, so sync it with the numbers
that are exported. Since we have barebox specific extensions to the
hash_algo list add a big comment and put the extenstions at the end.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | include/digest.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/digest.h b/include/digest.h index 4552e58255..a1cdbb2d7a 100644 --- a/include/digest.h +++ b/include/digest.h @@ -28,10 +28,10 @@ enum hash_algo { HASH_ALGO_MD5, HASH_ALGO_SHA1, HASH_ALGO_RIPE_MD_160, - HASH_ALGO_SHA224, HASH_ALGO_SHA256, HASH_ALGO_SHA384, HASH_ALGO_SHA512, + HASH_ALGO_SHA224, HASH_ALGO_RIPE_MD_128, HASH_ALGO_RIPE_MD_256, HASH_ALGO_RIPE_MD_320, @@ -41,6 +41,12 @@ enum hash_algo { HASH_ALGO_TGR_128, HASH_ALGO_TGR_160, HASH_ALGO_TGR_192, + HASH_ALGO_SM3_256, + /* + * The above are exported from the Kernel as + * /usr/include/linux/hash_info.h and thus have a fixed number, do not + * change it. Below are barebox specific, subject to renumbering. + */ HASH_ALGO_CRC32, HASH_ALGO__LAST }; |