projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e97e08
)
crypto: dh - return unsigned int for dh_data_size()
author
Tudor-Dan Ambarus
<tudor.ambarus@microchip.com>
Fri, 29 Sep 2017 09:21:04 +0000
(12:21 +0300)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Thu, 12 Oct 2017 14:55:01 +0000
(22:55 +0800)
p->key_size, p->p_size, p->g_size are all of unsigned int type.
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/dh_helper.c
patch
|
blob
|
history
diff --git
a/crypto/dh_helper.c
b/crypto/dh_helper.c
index 8ba8a3f826200c611e4e340df4502dab2b112c40..69869dad344ad1217c08336c97d63d9b6ad1f34c 100644
(file)
--- a/
crypto/dh_helper.c
+++ b/
crypto/dh_helper.c
@@
-28,7
+28,7
@@
static inline const u8 *dh_unpack_data(void *dst, const void *src, size_t size)
return src + size;
}
-static inline int dh_data_size(const struct dh *p)
+static inline
unsigned
int dh_data_size(const struct dh *p)
{
return p->key_size + p->p_size + p->g_size;
}