Skip to content

Commit

Permalink
crypto: dh - return unsigned int for dh_data_size()
Browse files Browse the repository at this point in the history
p->key_size, p->p_size, p->g_size are all of unsigned int type.

Signed-off-by: Tudor Ambarus <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
ambarus authored and herbertx committed Oct 12, 2017
1 parent 6e97e08 commit cb195b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/dh_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit cb195b3

Please sign in to comment.