diff options
author | Jeffrey Walton <noloader@gmail.com> | 2017-09-29 22:34:33 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2017-09-29 22:34:33 -0400 |
commit | e92eb316906c41b349f6c86a8186fd18b0b3b580 (patch) | |
tree | 93342c71e707564ae64d46bb60df16353762159f /tea.h | |
parent | bebdc8b91723f9155c22e5e4543ea02f4870c954 (diff) | |
download | cryptopp-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 'tea.h')
0 files changed, 0 insertions, 0 deletions