Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodtBlockPadding.CanFinish

function CanFinish(aCount: Integer): Boolean; virtual;
Whether the padding will have something to finish the input with once aCount more octets are in, i.e. whether FinalLen will then be 0 or more. False only for bpmNone short of a whole number of blocks, in a mode that encrypts whole blocks, and for bpmCTS short of one block - for a ciphertext as for a plaintext; a ciphertext can be short of more (see CanVerifyFinal). True while MustInitialize is set: the cipher declines input then.