> Hi, > > I'd like to propose a fix for JDK-8261355 [1]. > > The scheme used for holding data and padding while performing encryption > operations is almost the same than the existing one for decryption. The only > difference is that encryption does not require a block-sized buffer to be > always held because there is no need, upon an update call, to determine which > bytes are real output for the caller and which are padding -as it's required > for decryption-. I added a couple of comments in implUpdate to explain this. > > No regressions observed in jdk/sun/security/pkcs11. > > Thanks, > Martin.- > > -- > [1] - https://bugs.openjdk.java.net/browse/JDK-8261355
Martin Balao has updated the pull request incrementally with one additional commit since the last revision: Bug fixes and improvements as discussed in the PR ------------- Changes: - all: https://git.openjdk.java.net/jdk/pull/2510/files - new: https://git.openjdk.java.net/jdk/pull/2510/files/dd81ec9c..b47c03ed Webrevs: - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=2510&range=02 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=2510&range=01-02 Stats: 53 lines in 2 files changed: 11 ins; 18 del; 24 mod Patch: https://git.openjdk.java.net/jdk/pull/2510.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/2510/head:pull/2510 PR: https://git.openjdk.java.net/jdk/pull/2510