Workaround bug in BC

master
M66B 1 week ago
parent a364f87632
commit aee6ec14fe

@ -10504,6 +10504,12 @@ public class FragmentMessages extends FragmentBase
} catch (CMSException ex) { } catch (CMSException ex) {
Log.w(ex); Log.w(ex);
last = ex; last = ex;
} catch (Throwable ex) {
// java.lang.ClassCastException: org.bouncycastle.cms.jcajce.JceKeyTransEnvelopedRecipient cannot be cast to org.bouncycastle.cms.KeyAgreeRecipient
// at org.bouncycastle.cms.KeyAgreeRecipientInformation.getRecipientOperator(Unknown Source:1)
// at org.bouncycastle.cms.RecipientInformation.getContentStream(Unknown Source:0)
Log.e(ex);
last = ex;
} }
break; // only one try break; // only one try
} }
@ -10520,6 +10526,12 @@ public class FragmentMessages extends FragmentBase
} catch (CMSException ex) { } catch (CMSException ex) {
Log.w(ex); Log.w(ex);
last = ex; last = ex;
} catch (Throwable ex) {
// java.lang.ClassCastException: org.bouncycastle.cms.jcajce.JceKeyTransEnvelopedRecipient cannot be cast to org.bouncycastle.cms.KeyAgreeRecipient
// at org.bouncycastle.cms.KeyAgreeRecipientInformation.getRecipientOperator(Unknown Source:1)
// at org.bouncycastle.cms.RecipientInformation.getContentStream(Unknown Source:0)
Log.e(ex);
last = ex;
} }
} else } else
break; // out of recipients break; // out of recipients

Loading…
Cancel
Save