Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion wolfcrypt/src/blake2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ int blake2s_final( blake2s_state *S, byte *out, byte outlen )
}

for( i = 0; i < 8; ++i ) /* Output full hash to temp buffer */
store64( buffer + sizeof( S->h[i] ) * i, S->h[i] );
store32( buffer + sizeof( S->h[i] ) * i, S->h[i] );

XMEMCPY( out, buffer, outlen );

Expand Down
4 changes: 2 additions & 2 deletions wolfcrypt/src/curve448.c
Original file line number Diff line number Diff line change
Expand Up @@ -409,12 +409,12 @@ int wc_curve448_check_public(const byte* pub, word32 pubSz, int endian)
return ECC_BAD_ARG_E;
}
if ((i == 27) && (pub[i] == 0xfe)) {
for (++i; i < CURVE448_PUB_KEY_SIZE - 1; i--) {
for (++i; i < CURVE448_PUB_KEY_SIZE - 1; i++) {
if (pub[i] != 0xff) {
break;
}
}
if ((i == CURVE448_PUB_KEY_SIZE) && (pub[i] >= 0xfe)) {
if ((i == CURVE448_PUB_KEY_SIZE - 1) && (pub[i] >= 0xfe)) {
return ECC_BAD_ARG_E;
}
}
Expand Down