mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
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:
parent
6cc388c1bc
commit
0dabc88eeb
4 changed files with 12 additions and 12 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue