summaryrefslogtreecommitdiff
path: root/queue.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-09-29 22:34:33 -0400
committerJeffrey Walton <noloader@gmail.com>2017-09-29 22:34:33 -0400
commite92eb316906c41b349f6c86a8186fd18b0b3b580 (patch)
tree93342c71e707564ae64d46bb60df16353762159f /queue.cpp
parentbebdc8b91723f9155c22e5e4543ea02f4870c954 (diff)
downloadcryptopp-git-e92eb316906c41b349f6c86a8186fd18b0b3b580.tar.gz
Update StreamTransformation and ProcessLastBlock
Some authenticated encryption modes have needs that are not expressed well with MandatoryBlockSize() and MinLastBlockSize(). When IsLastBlockSpecial() returns true three things happen. First, standard block cipher padding is not applied. Second, the ProcessLastBlock() is used that provides inString and outString lengths. Third, outString is larger than inString by 2*MandatoryBlockSize(). That is, there's a reserve available when processing the last block. The return value of ProcessLastBlock() indicates how many bytes were written to outString. A filter driving data will send outString and returned length to an AttachedTransformation() for additional processing.
Diffstat (limited to 'queue.cpp')
0 files changed, 0 insertions, 0 deletions