Reconcile with jb-mr1-release

Change-Id: Ic77b4af66a8f52cac75543d400904a37cbd0d020
am 4c111300: bouncycastle 1.47 upgrade

* commit '4c111300c39cb2e27f07fc2ae3b00e23ed4443b2':
  bouncycastle 1.47 upgrade
am 517da5b1: BaseKeyFactorySpi should throw InvalidKeySpecException, not RuntimeExceptions

* commit '517da5b1cf8927b100e5e1d9df870854b09aa2ce':
  BaseKeyFactorySpi should throw InvalidKeySpecException, not RuntimeExceptions
am e6bf3e8d: Make existing bouncycastle bcprov build on host and add host-only bcpkix build

* commit 'e6bf3e8dfa2804891a82075cb469b736321b4827':
  Make existing bouncycastle bcprov build on host and add host-only bcpkix build
Reconcile with jb-mr1-release - do not merge

Change-Id: Id03db4a4500f1e58a7ebc8cff60d46538579e8ab
am c05c993c: (-s ours) Reconcile with jb-mr1-release - do not merge

* commit 'c05c993c9d11a183c5af24257cd5b4c4b1661706':
Allow CipherTest to run on RI

Change-Id: I14786a78cdabed17016febf598d70a60ae5a89dc
Fix non-BC EC private key usage DO NOT MERGE

Change-Id: I3ed2ecf7c52a8264069519cdda4165153018866b
Merge "Fix non-BC EC private key usage DO NOT MERGE"
am 5db429c3: (-s ours) Merge "Fix non-BC EC private key usage DO NOT MERGE"

* commit '5db429c3eb447595975a7466801318288eef7eda':
  Fix non-BC EC private key usage DO NOT MERGE
am 71050d26: (-s ours) am 5db429c3: (-s ours) Merge "Fix non-BC EC private key usage DO NOT MERGE"

* commit '71050d26a9d0081aae2214f8f17b8a35125976bd':
  Fix non-BC EC private key usage DO NOT MERGE
am ad5d6d32: (-s ours) am 71050d26: (-s ours) am 5db429c3: (-s ours) Merge "Fix non-BC EC private key usage DO NOT MERGE"

* commit 'ad5d6d329e9f3fbf571a7e770d29d5fc63d148c5':
  Fix non-BC EC private key usage DO NOT MERGE
Fix non-BC EC private key usage

This is a port of the previous patch to BC 1.47

Change-Id: I67d95635e05379fdbd09560c5be622de08f6018f
resolved conflicts for merge of 9912a9c8 to master

Change-Id: I62758df6d292b5ed1c6e5c5aa6584acea2a7039d
am 036093e8: Fix registration of MD5withRSA Signatures

* commit '036093e8793923cf6b6bd920d7a2254ab0afa8a1':
  Fix registration of MD5withRSA Signatures
resolved conflicts for merge of 52112f9f to master

Change-Id: I9fed9106003a41f0d47475a5a6b2d6863175078c
Reconcile with jb-mr1-release - do not merge

Change-Id: I865e554d84e2c86debcfe02cbc31bf4b138b4264
am b24e661c: (-s ours) Reconcile with jb-mr1-release - do not merge

* commit 'b24e661c66f1f75828f82a3e70a49ef93b2c434a':
am 1508faa5: Reconcile with jb-mr1-factory-release jb-mr1-release - do not merge

* commit '1508faa583ba640101feafcadba6015bc7ff524f':
am f81fa0e5: (-s ours) am 1508faa5: Reconcile with jb-mr1-factory-release jb-mr1-release - do not merge

* commit 'f81fa0e5f3eb0f122b2c70da05edb5387853e21f':