https://bz.apache.org/bugzilla/show_bug.cgi?id=66436

--- Comment #20 from Tom Xin <766781...@qq.com> ---
(In reply to Dominik Stadler from comment #19)
> This is hopefully now fixed via r1907444
> 
> The code seems to not have taken into account that ciphers work on data in
> 16-byte-chunks and so sometimes a bit more data needs to be read.
> 
> By trying to read a few bytes more, the test-case and a number of new tests
> now work fine and existing tests continue to work.
> 
> 
> 
> What made it hard to find is that the JDK code silently ignores a chunk of
> data if it's size is not a multiple of 16-bytes and just keeps using the
> encrypted data!?:
> 
> From
> /usr/lib/jvm/java-11-openjdk-amd64/lib/src.zip!/java.base/com/sun/crypto/
> provider/CipherCore.java:720
> 
>         // do not count the trailing bytes which do not make up a unit
>         len = (len > 0 ? (len - (len % unitBytes)) : 0);


That's great!

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to