Closed CaringDev closed 1 year ago
Hi,
I think what has happened is that this method was added and lost over time.
Padding is added and removed by PaddedBlockCipher which does not call this method.
Interestingly enough that process method in BasePadding cannot add padding because it is not suppled with a final length to pad up to or a block size for example.
I replaced the body of the method with a throw and it was never called by any of the tests.
If it is being used by anyone I don't know what for to be honest.
I'll merge this in but I have added an exception if pad is true.
Thanks for the submission!
MW
The following test currently fails:
As far as I can tell, there is no
process
function in the original Java implementation: see PKCS7Padding and BlockCipherPadding