if doFinal give you extra bytes it could break new String(...) as there will be to many zeros(if zeros).