Skip to content

Commit

Permalink
add _init to function names
Browse files Browse the repository at this point in the history
  • Loading branch information
arun committed Nov 13, 2019
1 parent e1f1890 commit 18511dc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions optimized/8-32/freestyle.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static void freestyle_roundsetup (
x->input_CONSTANT0 ^= cipher_parameter;
}

static u8 freestyle_encrypt_block (
static u8 freestyle_encrypt_block_init (
freestyle_ctx *x,
const u8 rounds,
u8 *expected_hash)
Expand Down Expand Up @@ -181,7 +181,7 @@ static u8 freestyle_encrypt_block (
return rounds;
}

static u8 freestyle_decrypt_block (
static u8 freestyle_decrypt_block_init (
freestyle_ctx *x,
u8 *expected_hash)
{
Expand Down Expand Up @@ -303,7 +303,7 @@ static void freestyle_randomsetup_encrypt (freestyle_ctx *x)

for (i = 0; i < x->num_init_hashes; ++i)
{
freestyle_encrypt_block (
freestyle_encrypt_block_init (
x,
R[i],
&x->init_hash [i]
Expand All @@ -324,7 +324,7 @@ static void freestyle_randomsetup_encrypt (freestyle_ctx *x)

for (i = 0; i < x->num_init_hashes; ++i)
{
CR[i] = freestyle_decrypt_block (
CR[i] = freestyle_decrypt_block_init (
x,
&x->init_hash [i]
);
Expand Down Expand Up @@ -430,7 +430,7 @@ static bool freestyle_randomsetup_decrypt (freestyle_ctx *x)

for (i = 0; i < x->num_init_hashes; ++i)
{
R[i] = freestyle_decrypt_block (
R[i] = freestyle_decrypt_block_init (
x,
&x->init_hash [i]
);
Expand Down
10 changes: 5 additions & 5 deletions optimized/merged/freestyle.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static void freestyle_roundsetup (
x->input_CONSTANT0 ^= cipher_parameter;
}

static u8 freestyle_encrypt_block (
static u8 freestyle_encrypt_block_init (
freestyle_ctx *x,
const u8 rounds,
u8 *expected_hash)
Expand Down Expand Up @@ -181,7 +181,7 @@ static u8 freestyle_encrypt_block (
return rounds;
}

static u8 freestyle_decrypt_block (
static u8 freestyle_decrypt_block_init (
freestyle_ctx *x,
u8 *expected_hash)
{
Expand Down Expand Up @@ -303,7 +303,7 @@ static void freestyle_randomsetup_encrypt (freestyle_ctx *x)

for (i = 0; i < x->num_init_hashes; ++i)
{
freestyle_encrypt_block (
freestyle_encrypt_block_init (
x,
R[i],
&x->init_hash [i]
Expand All @@ -324,7 +324,7 @@ static void freestyle_randomsetup_encrypt (freestyle_ctx *x)

for (i = 0; i < x->num_init_hashes; ++i)
{
CR[i] = freestyle_decrypt_block (
CR[i] = freestyle_decrypt_block_init (
x,
&x->init_hash [i]
);
Expand Down Expand Up @@ -430,7 +430,7 @@ static bool freestyle_randomsetup_decrypt (freestyle_ctx *x)

for (i = 0; i < x->num_init_hashes; ++i)
{
R[i] = freestyle_decrypt_block (
R[i] = freestyle_decrypt_block_init (
x,
&x->init_hash [i]
);
Expand Down

0 comments on commit 18511dc

Please sign in to comment.