Add const

This commit is contained in:
Ramana Kumar 2022-11-19 09:31:36 +00:00
parent 8820b7a659
commit 9611bfde9a
No known key found for this signature in database
GPG Key ID: ED471C788B900433
1 changed files with 1 additions and 1 deletions

View File

@ -1065,7 +1065,7 @@ void sha256_init(SHA256_CTX *ctx);
void sha256_update(SHA256_CTX *ctx, const void *_inp, size_t len);
void sha256_final(unsigned char md[32], SHA256_CTX *ctx);
static void hash(uint8_t md[32], uint8_t input[], size_t n) {
static void hash(uint8_t md[32], const uint8_t input[], size_t n) {
SHA256_CTX ctx;
sha256_init(&ctx);
sha256_update(&ctx, input, n);