fixed save functions of the chacha/salsa ranges
This commit is contained in:
parent
f6a718e331
commit
755939afd9
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue