public int CalculateSize int inputLength int blockSize Algorithm Block

1
2
3
4
5
6
7
8
9
public int CalculateSize (int inputLength)
{
int blockSize = Algorithm.BlockSize / 8;
if (inputLength % blockSize != 0)
return inputLength + blockSize;
return ((inputLength - (inputLength % blockSize)) + blockSize);
}