Encryptor: Require end of the output span to be indicated explicitly.
Usage becomes much less error-prone.
This commit is contained in:
1 parent
d194fef1af
commit
67709e5361
3 files changed
+31
-47
No files matched your search
@@ -9,9 +9,10 @@ class Encryptor
|
||||
{
|
||||
public:
|
||||
template<typename OutputIt, typename InputIt>
|
||||
void EncryptBlock(OutputIt out, InputIt inBegin, InputIt inEnd) const
|
||||
void EncryptBlock(OutputIt outBegin, OutputIt outEnd,
|
||||
InputIt inBegin, InputIt inEnd) const
|
||||
{
|
||||
Impl().EncryptBlock(out, inBegin, inEnd);
|
||||
Impl().EncryptBlock(outBegin, outEnd, inBegin, inEnd);
|
||||
}
|
||||
|
||||
template<typename Block>
|
||||
|
||||
Reference in new issue
Block a user