diff --git a/source/chacha20.d b/source/chacha20.d index fdc56ad..e51c97d 100644 --- a/source/chacha20.d +++ b/source/chacha20.d @@ -51,7 +51,7 @@ auto chacha20Cipher(R)(R range, ubyte[32] key, ubyte[8] nonce) { auto save() @property { - return rangeResult(count, range.save, chachaSection); + return rangeResult(count, range.save, chachaSection, chachaCounter); } } } diff --git a/source/salsa20.d b/source/salsa20.d index a40e226..aadfcbd 100644 --- a/source/salsa20.d +++ b/source/salsa20.d @@ -50,7 +50,7 @@ auto salsa20Cipher(R)(R range, ubyte[32] key, ubyte[8] nonce) { auto save() @property { - return rangeResult(count, range.save, salsaSection); + return rangeResult(count, range.save, salsaSection, salsaCounter); } } }