[Mono-bugs] [Bug 57941][Wis] Changed - CryptoConvert can't decode nunit.key
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sat, 1 May 2004 11:53:29 -0400 (EDT)
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 sebastien@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=57941
--- shadow/57941 2004-05-01 11:48:15.000000000 -0400
+++ shadow/57941.tmp.27860 2004-05-01 11:53:29.000000000 -0400
@@ -45,6 +45,24 @@
- The key file header is correct (first 16 bytes);
- This is a 1024 bits RSA key pair (the type/size supported for
strongnames);
- The size is incompatible with PRIVATEKEYBLOB definition (see MSDN).
- Signing does work with MS runtime;
- Signing doesn't work with Mono.
+
+------- Additional Comments From sebastien@ximian.com 2004-05-01 11:53 -------
+Normal size for SNK files is 596 bytes
+- 16 bytes for the header
+- 4 bytes for the public exponent
+- 128 bytes for the modulus (public key)
+- 64 bytes for P (prime1)
+- 64 bytes for Q (prime2)
+- 64 bytes for DP = D mod (P - 1) - exponent 1
+- 64 bytes for DQ = D mod (Q - 1) - exponent 2
+- 64 bytes for (1/Q) mod P - coefficient
+- 128 bytes for D - private exponent
+
+P, Q, DP, DQ, InvQ, D are the private key.
+In fact DP, DQ and InvQ are calculated (i.e. not really required) as
+an optimization to do CRT (Chinese Remainder Theorem).
+
+