Skip to content

Commit

Permalink
return if finished
Browse files Browse the repository at this point in the history
  • Loading branch information
arun-babu committed Sep 23, 2018
1 parent 50febc3 commit 94de75e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions optimized/8-32/freestyle.c
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,8 @@ void freestyle_encrypt (
for (i = 0; i < bytes; ++i) {
ciphertext [i] = plaintext[i] ^ keystream[i];
}

return;
}

plaintext += 64;
Expand Down Expand Up @@ -891,6 +893,8 @@ void freestyle_decrypt (
for (i = 0; i < bytes; ++i) {
plaintext [i] = ciphertext[i] ^ keystream[i];
}

return;
}

plaintext += 64;
Expand Down
4 changes: 4 additions & 0 deletions optimized/merged/freestyle.c
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,8 @@ void freestyle_encrypt (
for (i = 0; i < bytes; ++i) {
ciphertext [i] = plaintext[i] ^ keystream[i];
}

return;
}

plaintext += 64;
Expand Down Expand Up @@ -876,6 +878,8 @@ void freestyle_decrypt (
for (i = 0; i < bytes; ++i) {
plaintext [i] = ciphertext[i] ^ keystream[i];
}

return ;
}

plaintext += 64;
Expand Down

0 comments on commit 94de75e

Please sign in to comment.