fixed save functions of the chacha/salsa ranges

This commit is contained in:
Johannes Loher 2016-07-25 11:13:18 +02:00
parent f6a718e331
commit 755939afd9
2 changed files with 2 additions and 2 deletions

View file

@ -51,7 +51,7 @@ auto chacha20Cipher(R)(R range, ubyte[32] key, ubyte[8] nonce)
{ {
auto save() @property auto save() @property
{ {
return rangeResult(count, range.save, chachaSection); return rangeResult(count, range.save, chachaSection, chachaCounter);
} }
} }
} }

View file

@ -50,7 +50,7 @@ auto salsa20Cipher(R)(R range, ubyte[32] key, ubyte[8] nonce)
{ {
auto save() @property auto save() @property
{ {
return rangeResult(count, range.save, salsaSection); return rangeResult(count, range.save, salsaSection, salsaCounter);
} }
} }
} }