Re: [PATCH 1/3] crypto: dh_helper - return unsigned int for dh_data_size()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tudor Ambarus <tudor.ambarus@xxxxxxxxxxxxx> wrote:

> -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;
>  }

If this is a problem, do you need to do range checking?

David



[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux