mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
sha1: Fix digest state size/type
sha1 digest size is 5*32-bit => 160-bit. Using 64-bit unsigned long does not cause issue with the current sha1 implementation, but could be problematic for vectorized access. Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
This commit is contained in:
parent
8201b8066a
commit
4e883522ba
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ extern const uint8_t sha1_der_prefix[];
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
unsigned long total[2]; /*!< number of bytes processed */
|
unsigned long total[2]; /*!< number of bytes processed */
|
||||||
unsigned long state[5]; /*!< intermediate digest state */
|
uint32_t state[5]; /*!< intermediate digest state */
|
||||||
unsigned char buffer[64]; /*!< data block being processed */
|
unsigned char buffer[64]; /*!< data block being processed */
|
||||||
}
|
}
|
||||||
sha1_context;
|
sha1_context;
|
||||||
|
|
Loading…
Reference in a new issue