Don't lie about array parameters
This commit is contained in:
committed by
Dmitry Podgorny
parent
0acec5c335
commit
93f9a5d1e8
@@ -244,7 +244,7 @@ void SHA1_Update(SHA1_CTX* context, const uint8_t* data, const size_t len)
|
|||||||
|
|
||||||
|
|
||||||
/* Add padding and return the message digest. */
|
/* Add padding and return the message digest. */
|
||||||
void SHA1_Final(SHA1_CTX* context, uint8_t digest[SHA1_DIGEST_SIZE])
|
void SHA1_Final(SHA1_CTX* context, uint8_t *digest)
|
||||||
{
|
{
|
||||||
uint32_t i;
|
uint32_t i;
|
||||||
uint8_t finalcount[8];
|
uint8_t finalcount[8];
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ typedef struct {
|
|||||||
|
|
||||||
void SHA1_Init(SHA1_CTX* context);
|
void SHA1_Init(SHA1_CTX* context);
|
||||||
void SHA1_Update(SHA1_CTX* context, const uint8_t* data, const size_t len);
|
void SHA1_Update(SHA1_CTX* context, const uint8_t* data, const size_t len);
|
||||||
void SHA1_Final(SHA1_CTX* context, uint8_t digest[SHA1_DIGEST_SIZE]);
|
void SHA1_Final(SHA1_CTX* context, uint8_t *digest);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user