blob: b9c9181d515b73250b7a9ad26befdde5537214c3 [file] [log] [blame]
Brian Carlstrome6bf3e82012-09-17 16:04:47 -07001bcprov.patch:
Brian Carlstrom8113f6d2010-06-17 16:46:35 -07002
Brian Carlstrome6bf3e82012-09-17 16:04:47 -07003patch against Bouncy Castle's bcprov:
Brian Carlstrom7a6b43b2010-06-21 11:26:46 -07004
5The main differences involve removing algorithms not included in the
6reference implementation (RI). The libcore
7java.security.StandardNames test support class provides the most
8up-do-date documentation of differences between the RI's list of
9supported algorithms and Android's. Some notable omissions versus the
10RI:
Brian Carlstrom7a6b43b2010-06-21 11:26:46 -070011- LDAP
12- MD2
13- RC2
14
Brian Carlstromdb9f6e22011-05-21 22:07:40 -070015Other performance (both speed and memory) and correctness changes:
Brian Carlstrom7a6b43b2010-06-21 11:26:46 -070016- singleton DERNull (BouncyCastle now does this but we make constructor private to be sure)
17- similarly made DERBoolean constructor private and moved to DERBoolean.{getInstance,TRUE,FALSE}
Brian Carlstromdb9f6e22011-05-21 22:07:40 -070018- removed use of Boolean constructor
Brian Carlstrom7a6b43b2010-06-21 11:26:46 -070019- DERObjectIdentifier interns its internal String indentifer value
20- changed uses of 'new Integer' to 'Integer.valueOf'
Brian Carlstrom7a6b43b2010-06-21 11:26:46 -070021- X509CertificateObject.getEncoded caches its result
Brian Carlstrom7a6b43b2010-06-21 11:26:46 -070022- removed references to SecretKeyFactory.PBE/PKCS5 SecretKeyFactory.PBE/PKCS12
Brian Carlstrom10261d92010-06-23 00:14:16 -070023- OpenSSLDigest uses NativeCrypto JNI API
Brian Carlstrom8e551502010-07-13 14:50:52 -070024- KeyStoreSpis made more tolerant of non-existant and null aliases
25- PKCS12 KeyStore.getCreationDate tries to mimic RI behavior on null and missing aliases
26- Make PKCS12 KeyStore throw error when setting non-PrivateKey, instead of on get
27- Make PKCS12 KeyStore tolerate setting with an empty certificate chain
Jesse Wilson1db2c792010-09-02 10:30:27 -070028- Fixed cut & paste instanceof error in EncryptedPrivateKeyInfo
Brian Carlstrom83ebf912010-10-05 15:57:48 -070029- Make BouncyCastleProvider.PROVIDER_NAME final
Brian Carlstrom5faee292010-10-04 14:56:33 -070030- Added wrapper for SecretKeyFactory.PBKDF2WithHmacSHA1
Brian Carlstrom517da5b2012-09-14 00:21:37 -070031- Fixed BaseKeyFactorySpi to convert all Exceptions to InvalidKeySpecException for KeyRepTest
Kenny Root44021512013-01-07 10:41:42 -080032- Added support for getSubjectAlternativeNames and getIssuerAlternativeNames to the JCE interface
33- Changed subjectAlternativeNames to match X509Certificate documentation's specified output
34- T61String are decoded as UTF-8 to match RI
Jesse Wilson253ce5e2011-02-23 17:42:23 -080035
Brian Carlstrom34c261b2011-03-23 16:43:51 -070036Other security changes:
Brian Carlstrom092d1532011-03-23 22:30:53 -070037- Blacklist fraudulent Comodo certificates in PKIXCertPathValidatorSpi
Brian Carlstrom6fe522a2011-09-01 14:57:08 -070038- Blacklist compromised DigiNotar Root CA by public key to block cross-signed intermediates
Brian Carlstrom092d1532011-03-23 22:30:53 -070039
40Other changes:
Jesse Wilson253ce5e2011-02-23 17:42:23 -080041- Log entry and exit to DHParametersHelper.generateSafePrimes which has long, unpredictable runtime
Brian Carlstrome6bf3e82012-09-17 16:04:47 -070042
43
44bcpkix.patch:
45
46patch against Bouncy Castle's bcpkix:
47
48The main differences involve:
49- removing algorithms not in our bcprov (MD2, MD4, SHA224, RIPEMD, GOST)
50- using the singleton DERNull.INSTANCE
Brian Carlstromaea1f122013-01-28 18:13:59 -080051
52
53CipherSpi-engineWrap.patch:
54
55Fixes from upstream BouncyCastle repository for:
56 https://code.google.com/p/android/issues/detail?id=41405
57
58"added wrap/unwrap support back in."
59 http://www.bouncycastle.org/viewcvs/viewcvs.cgi/java/crypto/src/org/bouncycastle/jce/provider/JCEBlockCipher.java?r1=1.31&r2=1.32&view=patch
60"fix for JCEStreamCipher PBE wrapping"
61 http://www.bouncycastle.org/viewcvs/viewcvs.cgi/java/crypto/src/org/bouncycastle/jce/provider/JCEStreamCipher.java?r1=1.15&r2=1.16&view=patch