Decryptor: Require end of the output span to be indicated explicitly.

Usage becomes much less error-prone.
This commit is contained in:
hashlag
2026-02-02 01:10:22 +03:00
parent 67709e5361
commit a0f17ea127
3 changed files with 21 additions and 47 deletions

View File

@@ -9,9 +9,10 @@ class Decryptor
{
public:
template<typename OutputIt, typename InputIt>
void DecryptBlock(OutputIt out, InputIt inBegin, InputIt inEnd) const
void DecryptBlock(OutputIt outBegin, OutputIt outEnd,
InputIt inBegin, InputIt inEnd) const
{
Impl().DecryptBlock(out, inBegin, inEnd);
Impl().DecryptBlock(outBegin, outEnd, inBegin, inEnd);
}
template<typename Block>