RFR JDK-8178374: Problematic ByteBuffer handling in CipherSpi.bufferCrypt method

Valerie Peng valerie.peng at oracle.com
Wed Jun 6 21:16:17 UTC 2018

Hi Tony,

Can you please help reviewing this fix? The original impl uses buffering 
for both input and output and is broken in several places. I ended up 
re-writing most of them. The buffering is done only on input. The new 
regression test covers all 4 combination of input/output ByteBuffers as 
well as various sizes.

Webrev: http://cr.openjdk.java.net/~valeriep/8178374/webrev.00/

Bug: https://bugs.openjdk.java.net/browse/JDK-8178374


More information about the security-dev mailing list