[sr #107518] GnuTLS: After DSA Key Generation, 2 Integers were Encoded Incorrectly

Jeffrey Walton INVALID.NOREPLY at gnu.org
Tue Nov 16 10:12:57 CET 2010


URL:
  <http://savannah.gnu.org/support/?107518>

                 Summary: GnuTLS: After DSA Key Generation, 2 Integers were
Encoded Incorrectly
                 Project: GnuTLS
            Submitted by: noloader
            Submitted on: Tue 16 Nov 2010 09:12:56 AM GMT
                Category: None
                Priority: 5 - Normal
                Severity: 3 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Seems to be missing a couple of leading 00 octets...

===================================================

$ certtool --dsa --generate-privkey --pkcs8 --outder --bits 1024 --outfile
dsa-gnutls.der
Generating a 1024 bit DSA private key...
Enter password: 
Confirm password: 
jeffrey at studio:~/Desktop/gnutls$ dumpasn1 dsa-gnutls.der 
   0  328: SEQUENCE {
   4    1:   INTEGER 0
   7  297:   SEQUENCE {
  11    7:     OBJECT IDENTIFIER dsa (1 2 840 10040 4 1)
  20  284:     SEQUENCE {
  24  128:       INTEGER
         :         9B FE 7E 3B E8 09 8A 09 A4 4A E7 68 6B 88 BC 09
         :         EC 73 00 2A D8 56 03 B2 3A 1C 2C 04 26 DE 21 5C
         :         4E D6 A8 3B 3F DE 28 B2 F4 47 2C 7C 50 D2 5F A9
         :         B6 0E 69 05 48 39 E2 27 F5 9E 32 25 42 1C 99 EC
         :         18 D6 D0 A3 66 95 18 4B B0 CB 16 69 EE C4 C4 9B
         :         B6 A0 61 02 6A 39 77 BE 77 10 4F FF E9 3F 6D E3
         :         5F 6F 66 E9 B4 E2 C2 5E 8B C4 1E 7D 44 08 27 78
         :         74 CC A3 93 79 06 27 0D 71 F7 34 A7 58 C2 22 57
         :         Error: Integer has a negative value.
 155   20:       INTEGER
         :         E8 93 3C 19 61 B1 38 5B B7 43 0A DE CB 9A F3 3A
         :         38 AD 46 BD
         :         Error: Integer has a negative value.
 177  128:       INTEGER
         :         54 82 BF B9 49 8A B8 77 E2 35 EC BE 7F 8F 3E 4A
         :         AB 21 C0 62 6A A4 C5 8A D8 3B CA 4B 76 BE 50 5D
         :         13 8A AB 33 3D C5 01 9E 21 A1 FA 75 8F 4A 18 00
         :         9B 80 17 35 C0 17 74 BD 2E 2F FC 0A E1 FD AF 44
         :         36 84 66 D4 1C 78 C3 C6 08 4A 84 6D 96 CE 77 00
         :         66 8A 77 35 DC 30 BA 48 18 48 4C 1A 92 D5 52 F0
         :         E2 43 7A F5 16 27 77 FF F4 5D F2 17 5F B3 04 D0
         :         D1 1A 2C E8 36 5D 45 AC A5 68 F7 BB 84 DF 2C 31
         :       }
         :     }
 308   22:   OCTET STRING, encapsulates {
 310   20:     INTEGER
         :       4F A3 A5 92 92 86 FE 57 6A 73 AE 61 BC 46 0A 86
         :       BF 0E 14 BE
         :     }
         :   }

0 warnings, 2 errors.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 16 Nov 2010 09:12:56 AM GMT  Name: dsa-gnutls.der  Size: 332B   By:
noloader
Generated file
<http://savannah.gnu.org/support/download.php?file_id=22030>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/support/?107518>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





More information about the Gnutls-devel mailing list