Closed bclark76 closed 5 years ago
Thanks for the bug report! You're right, it should use a buffer size of 1 instead of 0. I'll release a fix for it tonight.
I fixed this, and released it as version 0.7.1. Thanks again for the detailed bug report!
Wow, that was quick! Thanks! Fixed my issue!
Upgrading from 0.1.1 to 0.7 I got this during testing my code:
java.lang.IllegalArgumentException: Buffer size <= 0 at java.io.BufferedInputStream.(BufferedInputStream.java:201)
at org.c02e.jpgpj.Encryptor.encrypt(Encryptor.java:343)
Encryptor.class has:
It's passing zero as the buffer size for zero byte plaintexts.
Seems BufferedInputStream has:
Is it possible to pass a buffer size of 1 if the buffer size would be zero?