summaryrefslogtreecommitdiffstats
path: root/bcprov/src/main/java/org/bouncycastle/jcajce
Commit message (Collapse)AuthorAgeFilesLines
* GCM: fix mode and padding setKenny Root2015-07-231-0/+15
| | | | | | | | | | | | Since "GCM" was renamed to "AES/GCM/NoPadding" to correspond to the StandardNames document, the mode and padding weren't being set via the Cipher#init call since it assumed the CipherSpi already knew its mode and padding. (cherry picked from commit 65581d2bbf27de395c221f5f7f4fd93cbab091ff) Bug: 22611918 Change-Id: Ib85438a1c95ffda526dbbac8793b04ff02d40fcc
* Register DSA OID for KeyFactory not just SignatureKenny Root2015-06-012-2/+7
| | | | | | | | | | | | | | X.509 certificates made with DSA signatures have the X9 DSA with SHA1 OID typically, so we need Bouncycastle to register this OID as an alias for the DSA KeyFactory. We also need to remove a manual OID alias added for Signatures which probably indicates how this slipped through the cracks. (cherry picked from commit 75fc34101f063fe3534de7340beb13c87786e6e1) Bug: 21209493 Change-Id: I12a88ead61c626343d96a9c335bdf40e615894bd
* Revert "Register DSAwithSHA1 OID for KeyFactory"Kenny Root2015-06-011-3/+0
| | | | | | This reverts commit f2ca73c07d072282905ed43d2b866278caabe12f. Change-Id: If6c261b71521f79582ca0a742a1aa02be31c70fe
* Register DSAwithSHA1 OID for KeyFactoryKenny Root2015-06-011-0/+3
| | | | | | | | | | | X.509 certificates made with DSA signatures have the X9 DSA with SHA1 OID typically, so we need Bouncycastle to register this OID as an alias for the DSA KeyFactory. (cherry picked from commit 36995a1668ccfc521253ffae6f705d0af028ca3e) Bug: 21209493 Change-Id: I1c2fe6d7f638974ab54589bf757e66ff452ad395
* Set default EC key size to 256-bitsKenny Root2015-05-131-1/+3
| | | | | | | | | | | | | NIST SP800 131A recommends 112-bits as the lowest security level acceptable after December 31, 2013. Although the 239-bit EC group meets that bar, the P-256, P-384, and P-521 are the more widely supported options. Change the default to increase interoperability while maintaining the security level recommended. (cherry picked from commit c5a7ff00b9c78ce5e15de5b99dc78a7e8c83ecd3) Bug: 21085656 Change-Id: Idb71fdc801bafc5ad38f0b87dc3847f48854563f
* Change default GCM name to AES/GCM/NOPADDINGKenny Root2015-05-131-4/+6
| | | | | | | | | | This matches the RI and doesn't get late binding confused when you call Cipher.getInstance (cherry picked from commit 4046cd0249e7ffa820dcd4318f4e81f737d8634c) Bug: 21085702 Change-Id: I8f69e7b342fde4881f20e103240f0b289322ef4e
* Change Bouncycastle default AES key size to 128Kenny Root2015-05-131-1/+3
| | | | | | | | | | The default of 192 bit keys was the worst of all choices. 128-bit runs faster on mobile devices. (cherry picked from commit ac2a5751dc9578b1f2a8d99906e435993d36c8d6) Bug: 21085656 Change-Id: Ie4d15ea35e46a157f8c0d43a91e699135e2c58d1
* bouncycastle: upgrade to version 1.52Sergio Giro2015-04-2041-214/+1511
| | | | Change-Id: I227db8e458e67af46ccb1c07bfca77a733f25979
* Upgrade to 1.51Kenny Root2014-08-0631-336/+616
| | | | | | | | f98b02ab394044a3c237d2c7a2ee5ef65793e8e9 bcpkix-jdk15on-151.tar.gz 95e59ad2492598d729cfc559b480c3f172de5dc3 bcprov-jdk15on-151.tar.gz Bug: 16578237 Change-Id: Ie4a3cd01b52b504a1098b00b413f1418273a6ef2
* Add OID for Diffie-Hellman keysKenny Root2014-05-071-0/+11
| | | | | | | Without this, decoding X.509 certificates doesn't get a valid DH public key since this OID is not registered by any other provider. Change-Id: I82a5e4cfc3b63c3928299523725d24b838ca939c
* Remove Signature.SHA{384,512}withDSAKenny Root2013-12-161-2/+4
| | | | | | Accidentally added during the upgrade to Bouncycastle 1.50. Change-Id: I91439c1a53f7d46e56d966b551f06b120003a2a8
* Add support for Cipher#getIV with GCMKenny Root2013-12-131-0/+5
| | | | Change-Id: I80cb9e09d75fdb690721c07f54701e6d043cf7b1
* Upgrade to Bouncycastle 1.50Kenny Root2013-12-1225-265/+977
| | | | | | | | SHA256 sums of source packages: 0be5bb948ec481b3d1f30ee80ef593b298b3782697f9eeee5c74cf270689b520 bcpkix-jdk15on-150.tar.gz 468259c9166fbcf87ad284ae46fae45408cb7cfc9c406862ea75d5b8696f4f2a bcprov-jdk15on-150.tar.gz Change-Id: Id566e9137f85d8328e9f0cb0472ff2f6ae7a71d3
* Restore SHA-224Kenny Root2013-09-269-74/+140
| | | | | | In the StandardNames 8 document, SHA-224 has made a comeback. Change-Id: I2cfd04df026502efa3ccbae17eb509588f43292f
* bouncycastle 1.49 upgradeBrian Carlstrom2013-06-0347-986/+6776
| | | | Change-Id: Icbf5a147409c810060a5acc884834fb2a778e860
* Fix PBKDF2WithHmacSHA1 to use high bitsWilliam Luh2013-05-282-2/+25
| | | | | | | | | Bug: 8312059 Bug: https://code.google.com/p/android/issues/detail?id=40578 Cherry picked from commit a2ab0a62bc1ca3978e3ab3a3c1f8288f29a30e7e Change-Id: I749380979671709d63cc87f798b77ed5d8eaef6e
* Make ECDH KeyAgreement reject AlgorithmParameterSpec.Alex Klyubin2013-03-191-0/+6
| | | | | | | This makes the BouncyCastle JCA Provider pass libcore.javax.crypto.ECDHKeyAgreementTest. Change-Id: I462c93a19c5dfc00733deb76351631ab4b4601da
* Fix CertPath APIsKenny Root2013-02-202-2/+6
| | | | | | | There was a missing getCertPathEncodings() implementation and the "PEM" encoding wasn't fully removed. Change-Id: I514910eec34ad39e0a2d56677ffdd400b38c6bc9
* bouncycastle 1.48 upgradeBrian Carlstrom2013-02-1235-194/+193
| | | | Change-Id: Idb04baf42de07b18ddb162e5cd1f98cdadf366f4
* am 036093e8: Fix registration of MD5withRSA SignaturesBrian Carlstrom2012-11-011-8/+14
|\ | | | | | | | | * commit '036093e8793923cf6b6bd920d7a2254ab0afa8a1': Fix registration of MD5withRSA Signatures
| * Fix registration of MD5withRSA SignaturesBrian Carlstrom2012-11-011-8/+14
| | | | | | | | | | Bug: 7453821 Change-Id: Ibcd0f02376bd7a56761597e20096d75ced9c56a5
* | Fix non-BC EC private key usageKenny Root2012-10-122-0/+31
|/ | | | | | This is a port of the previous patch to BC 1.47 Change-Id: I67d95635e05379fdbd09560c5be622de08f6018f
* Make existing bouncycastle bcprov build on host and add host-only bcpkix buildBrian Carlstrom2012-09-1985-0/+14825
- Move existing provider source to bcprov - Added bcpkix host build to support built/tooks/signapk sha1sum of sources: - 10bfea344842fe8e065c80e399c93f8651dc87d8 bcprov-jdk15on-147.tar.gz - 913828c7ae36e030508e97e07b3c213fb1db1e9c bcpkix-jdk15on-147.tar.gz Bug: 7056297 Change-Id: Id4f957f300a39aa34b4c3c679b2312631d3f1639