Here is what I have blocksize, what algorithm is used and what kind of padding is used.
Here is how I do actual crypting
One thing here is unclear to me. I noticed, that if remainder is 0 (zero), I have to increase ciphertextLength one blocksize. So actual byte table is then plaintext + blocksize. Otherwise, if table cipherText is as big as plaintext, ShortBufferException is thrown.
Can somebody explain why I have to do this. I assume, that something added to that cipherText table more, than just plaintext. But what is that.
Thanks for your answers!
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads