libi22pd: convert several loops to range based ones

Found with clang-tidy's modernize-loop-convert.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2020-01-19 18:50:20 -08:00
parent 6cc388c1bc
commit 0dabc88eeb
No known key found for this signature in database
GPG key ID: 36D31CFA845F0E3B
4 changed files with 12 additions and 12 deletions

View file

@ -838,10 +838,10 @@ namespace crypto
{
GOST3411Block k = *this;
GOST3411Block res = k^m;
for (int i = 0; i < 12; i++)
for (const auto & i : C_)
{
res.F ();
k = k^C_[i];
k = k^i;
k.F ();
res = k^res;
}