Encoding Bug in ASN1Set
MSKnete-S0/[email protected] Fri, 13 Dec 2019 11:20:46 +0100
| Newsgroups | gmane.comp.encryption.bouncy-castle.devel |
|---|---|
| Message-ID | <trinity-a3675d1c-6c33-479d-8826-a8bf86654296-1576232446630@3c-app-webde-bs14> |
<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div> <div>Hi,</div> <div> </div> <div>I have notice a bug in <span style="font-family:Courier New,Courier,monospace;">org.bouncycastle.asn1.ASN1Set.toDERObject()</span> that could lead to reporting valid signatures as invalid. ASN1Sets can apparently be sorted or not. However why the mentioned method does sort unsorted sets and dosn't sort sorted ones is a mystery to me. Can you please switch the cases to fix the bug?</div> <div> </div> <div>Regards,<br/> Michael</div> </div></div></body></html>