title: PSS signature verification fails since Android 2.3
body: <p>In my app, I am verifying the digital signature of a file signed with the Probabilistic Signature Scheme (PSS) using SHA1 and RSA. The signatures are created in J2SE with the help of BouncyCastle.</p>
  
  <p>In the Android app this verification worked fine so far (e.g., 2.1, 2.2). When testing the app on Android 2.3 devices/simulator I receive a NoSuchAlgorithmException.</p>
  
  <pre><code>NoSuchAlgorithmException: Signature SHA1withRSA/PSS implementation not found 
  </code></pre>
  
  <p>The relevant code I use for verifying the signature is the following:</p>
  
  <pre><code>Signature signature = Signature.getInstance("SHA1withRSA/PSS", "BC");
  signature.setParameter(new PSSParameterSpec(64));
  signature.initVerify(thePublicKey);
  signature.update(theMessage.getBytes());
  boolean signatureIsValid = signature.verify(theSignature);
  </code></pre>
  
  <p>What happened since Android 2.2, why was the algorithm "SHA1withRSA/PSS" removed from the "BC" provider?</p>
  
  <p>Does anybody have a alternative (which at best works with all Android versions)?</p>
  
  <p>Thank you!</p>