From 755939afd9ef8a9e33bc428711ba4eadbc4651a2 Mon Sep 17 00:00:00 2001 From: Johannes Loher Date: Mon, 25 Jul 2016 11:13:18 +0200 Subject: [PATCH] fixed save functions of the chacha/salsa ranges --- source/chacha20.d | 2 +- source/salsa20.d | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); } } }