[Mono-bugs] [Bug 75778][Nor] New - The DER encoding of an ASN1 INTEGER must be encoded with a minimum number of octets.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Aug 11 04:31:11 EDT 2005


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by dgranath at gmail.com.

http://bugzilla.ximian.com/show_bug.cgi?id=75778

--- shadow/75778	2005-08-11 04:31:11.000000000 -0400
+++ shadow/75778.tmp.21126	2005-08-11 04:31:11.000000000 -0400
@@ -0,0 +1,25 @@
+Bug#: 75778
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Mono.Security
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: dgranath at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: The DER encoding of an ASN1 INTEGER must be encoded with a minimum number of octets.
+
+The DER encoding of an ASN1 INTEGER must be encoded with a minimum number
+of octets. The Mono.Security.ASN1Convert.FromUnsignedBigInteger method
+always prepends a null byte when encoding, thereby encoding for example the
+public key exponent 65537 as 0101 instead of 101. 
+
+The solution would be to only prepend a null byte for determinedly negative
+numbers ie where the sign bit is set in the first byte.


More information about the mono-bugs mailing list