upstream: avoid signedness warning; spotted in -portable
OpenBSD-Regress-ID: 4cacc126086487c0ea7f3d86b42dec458cf0d0c6
This commit is contained in:
parent
2741f52beb
commit
ccd358e1e2
|
@ -356,7 +356,7 @@ sig_ecdsa(const uint8_t *message, size_t message_len,
|
|||
/* Prepare data to be signed */
|
||||
dump("message", message, message_len);
|
||||
SHA256Init(&ctx);
|
||||
SHA256Update(&ctx, application, strlen(application));
|
||||
SHA256Update(&ctx, (const u_char *)application, strlen(application));
|
||||
SHA256Final(apphash, &ctx);
|
||||
dump("apphash", apphash, sizeof(apphash));
|
||||
countbuf[0] = (counter >> 24) & 0xff;
|
||||
|
@ -435,7 +435,7 @@ sig_ed25519(const uint8_t *message, size_t message_len,
|
|||
/* Prepare data to be signed */
|
||||
dump("message", message, message_len);
|
||||
SHA256Init(&ctx);
|
||||
SHA256Update(&ctx, application, strlen(application));
|
||||
SHA256Update(&ctx, (const u_char *)application, strlen(application));
|
||||
SHA256Final(apphash, &ctx);
|
||||
dump("apphash", apphash, sizeof(apphash));
|
||||
|
||||
|
|
Loading…
Reference in New Issue