public int CalculateSize int inputLength int outputLength inputLength

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