Skip to content

Commit

Permalink
bool to u8
Browse files Browse the repository at this point in the history
  • Loading branch information
pct960 authored and arun-babu committed Mar 30, 2022
1 parent be040e1 commit bd6a245
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion freestyle.c
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ void freestyle_hash_password_with_pepper (
);
}

static bool safe_bcmp (const u8* const a, const u8* const b, const size_t length)
static u8 safe_bcmp (const u8* const a, const u8* const b, const size_t length)
{
u8 diff = 0;

Expand Down
2 changes: 1 addition & 1 deletion optimized/8-32/freestyle.c
Original file line number Diff line number Diff line change
Expand Up @@ -1142,7 +1142,7 @@ void freestyle_hash_password_with_pepper (
);
}

static bool safe_bcmp (const u8* const a, const u8* const b, const size_t length)
static u8 safe_bcmp (const u8* const a, const u8* const b, const size_t length)
{
u8 diff = 0;

Expand Down
2 changes: 1 addition & 1 deletion optimized/merged/freestyle.c
Original file line number Diff line number Diff line change
Expand Up @@ -1127,7 +1127,7 @@ void freestyle_hash_password_with_pepper (
);
}

static bool safe_bcmp (const u8* const a, const u8* const b, const size_t length)
static u8 safe_bcmp (const u8* const a, const u8* const b, const size_t length)
{
u8 diff = 0;

Expand Down
2 changes: 1 addition & 1 deletion side-channel-attack-resistance/freestyle.c
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ void freestyle_hash_password_with_pepper (
);
}

static bool safe_bcmp (const u8* const a, const u8* const b, const size_t length)
static u8 safe_bcmp (const u8* const a, const u8* const b, const size_t length)
{
u8 diff = 0;

Expand Down

0 comments on commit bd6a245

Please sign in to comment.