I've been so focused on getting TLS 1.2 done, this has been really low
priority.
> 6687725: Internal PKCS5Padding impl should throw
> IllegalBlockSizeException and not BadPaddingException
> Webrev - http://cr.openjdk.java.net/~valeriep/6687725
Should you continuing to check for negative numbers? I don't know
when/if a native impl C_DecryptFinal might actually return -1 (some
error condition?), but it seems this check might have been there for a
reason.
While not specifically addressed in the JavaSoft Code Conventions, my
understanding of breaking lines has been to break method declarations as
such:
throw new IllegalBlockSizeException(
"Input length must be multiples of " + blockSize);
> 6848930: JSN security test jce/Global/Cipher/PKCS5Padding cannot thrown
> expected BadPaddingException
> Webrev - http://cr.openjdk.java.net/~valeriep/6848930
Question, for the other pads such as CKM_RC2_CBC_PAD/CKM_RC5_CBC_PAD.
You're not including them here because the SunPKCS11 provider doesn't
provide access to them?
Otherwise, looks fine.
Brad
On 8/31/2010 5:20 PM, Valerie (Yu-Ching) Peng wrote:
Hi, Brad,
Do you have time to review these two PKCS11 fixes? They are straight
forward.
6687725: Internal PKCS5Padding impl should throw
IllegalBlockSizeException and not BadPaddingException
Webrev - http://cr.openjdk.java.net/~valeriep/6687725
6848930: JSN security test jce/Global/Cipher/PKCS5Padding cannot thrown
expected BadPaddingException
Webrev - http://cr.openjdk.java.net/~valeriep/6848930
Note: This is same as the changes made for 6U release, to workaround
different Solaris impls.
Thanks!
Valerie