# HG changeset patch # User valeriep # Date 1289860369 28800 # Node ID 4e3088f05c63be6bbfd2915a23a983bf6b70bceb # Parent 2bd7f94e734dac8390b95c98efa1376e7cbabbb6 6848930: JSN security test jce/Global/Cipher/PKCS5Padding cannot thrown expected BadPaddingException Summary: Disabled CKM_DES_CBC_PAD, CKM_DES3_CBC_PAD, CKM_AES_CBC_PAD mechs by default and use our own internal padding impl. Reviewed-by: wetmore diff -r 2bd7f94e734d -r 4e3088f05c63 jdk/src/share/lib/security/sunpkcs11-solaris.cfg --- a/jdk/src/share/lib/security/sunpkcs11-solaris.cfg Mon Nov 15 09:42:39 2010 -0800 +++ b/jdk/src/share/lib/security/sunpkcs11-solaris.cfg Mon Nov 15 14:32:49 2010 -0800 @@ -31,5 +31,9 @@ CKM_SHA256_RSA_PKCS CKM_SHA384_RSA_PKCS CKM_SHA512_RSA_PKCS +# the following mechanisms are disabled to ensure backward compatibility (Solaris bug 6545046) + CKM_DES_CBC_PAD + CKM_DES3_CBC_PAD + CKM_AES_CBC_PAD }