public int CalculateSize int inputLength int outputLength inputLength

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