aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/block/camellia/camellia.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2020-11-11 09:04:06 -0500
committerJack Lloyd <[email protected]>2020-11-11 09:46:21 -0500
commit2f9e04669f546f929c9e80e5885f604f09ba7c23 (patch)
treef8b7d30ad687a1172bec0536221bafa6cc91205f /src/lib/block/camellia/camellia.cpp
parent0d3470fbcaf65fbaf53b14c6028a53b071e37b3f (diff)
Remove unnecessary code due to compiler limitations
Use [[nodiscard]] and [[deprecated]] annotations since those are available to us now.
Diffstat (limited to 'src/lib/block/camellia/camellia.cpp')
-rw-r--r--src/lib/block/camellia/camellia.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/block/camellia/camellia.cpp b/src/lib/block/camellia/camellia.cpp
index c9d82944f..f120c73ba 100644
--- a/src/lib/block/camellia/camellia.cpp
+++ b/src/lib/block/camellia/camellia.cpp
@@ -648,7 +648,7 @@ inline uint64_t FLINV(uint64_t v, uint64_t K)
void encrypt(const uint8_t in[], uint8_t out[], size_t blocks,
const secure_vector<uint64_t>& SK, const size_t rounds)
{
- BOTAN_PARALLEL_FOR(size_t i = 0; i < blocks; ++i)
+ for(size_t i = 0; i < blocks; ++i)
{
uint64_t D1, D2;
load_be(in + 16*i, D1, D2);
@@ -689,7 +689,7 @@ void encrypt(const uint8_t in[], uint8_t out[], size_t blocks,
void decrypt(const uint8_t in[], uint8_t out[], size_t blocks,
const secure_vector<uint64_t>& SK, const size_t rounds)
{
- BOTAN_PARALLEL_FOR(size_t i = 0; i < blocks; ++i)
+ for(size_t i = 0; i < blocks; ++i)
{
uint64_t D1, D2;
load_be(in + 16*i, D1, D2);