Re: [U-Boot] [PATCH] lib: sha1: Change uint8_t to unsigned char for sha1_der_prefix array.

2017-11-26 Thread Simon Glass
Hi Wilson, On 23 November 2017 at 01:29, Wilson Lee wrote: > Hi Simon, > > On Mon, 2017-11-20 at 08:38 -0700, Simon Glass wrote: >> Hi Wilson, >> >> On 7 November 2017 at 19:30, Wilson Lee wrote: >> > >> > uint8_t used in sha1_der_prefix array was not able

Re: [U-Boot] [PATCH] lib: sha1: Change uint8_t to unsigned char for sha1_der_prefix array.

2017-11-23 Thread Wilson Lee
Hi Simon, On Mon, 2017-11-20 at 08:38 -0700, Simon Glass wrote: > Hi Wilson, > > On 7 November 2017 at 19:30, Wilson Lee wrote: > > > > uint8_t used in sha1_der_prefix array was not able to recognize by > > compiler when try to build the tools using 'HOSTCC'. That is > >

Re: [U-Boot] [PATCH] lib: sha1: Change uint8_t to unsigned char for sha1_der_prefix array.

2017-11-20 Thread Simon Glass
Hi Wilson, On 7 November 2017 at 19:30, Wilson Lee wrote: > uint8_t used in sha1_der_prefix array was not able to recognize by > compiler when try to build the tools using 'HOSTCC'. That is because, > uint8_t is undefined when 'HOSTCC' is defined because asm/type.h is not >

[U-Boot] [PATCH] lib: sha1: Change uint8_t to unsigned char for sha1_der_prefix array.

2017-11-07 Thread Wilson Lee
uint8_t used in sha1_der_prefix array was not able to recognize by compiler when try to build the tools using 'HOSTCC'. That is because, uint8_t is undefined when 'HOSTCC' is defined because asm/type.h is not included in that case. Use unsigned char for sha1_der_prefix[] array instead. This