"Fossies" - the Fresh Open Source Software Archive

Member "libksba-1.5.0/tests/samples/ecdsa-sample1.p7s.asn" (11 May 2020, 12699 Bytes) of package /linux/privat/libksba-1.5.0.tar.bz2:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1    0 NDEF: SEQUENCE { -- ContentInfo
    2    2    9:   OBJECT IDENTIFIER signedData (1 2 840 113549 1 7 2)
    3   13 NDEF:   [0] {  -- content
    4   15 NDEF:     SEQUENCE {
    5   17    1:       INTEGER 1    -- version
    6   20   15:       SET {        -- digestAlgorithms
    7   22   13:         SEQUENCE { -- digestalgorithmIdentifier
    8   24    9:           OBJECT IDENTIFIER sha-256 (2 16 840 1 101 3 4 2 1)
    9   35    0:           NULL
   10          :           }
   11          :         }
   12   37 NDEF:       SEQUENCE {  -- encapContentInfo
   13   39    9:         OBJECT IDENTIFIER data (1 2 840 113549 1 7 1)
   14          :         }   -- (no data thus this is a detached signature)
   15   52 NDEF:       [0] {  -- certificates
   16   54  711:         SEQUENCE {
   17   58  431:           SEQUENCE {
   18   62    3:             [0] {
   19   64    1:               INTEGER 2
   20          :               }
   21   67    4:             INTEGER 649228179
   22   73   13:             SEQUENCE {
   23   75    9:               OBJECT IDENTIFIER
   24          :                 sha256WithRSAEncryption (1 2 840 113549 1 1 11)
   25   86    0:               NULL
   26          :               }
   27   88  119:             SEQUENCE {
   28   90   11:               SET {
   29   92    9:                 SEQUENCE {
   30   94    3:                   OBJECT IDENTIFIER countryName (2 5 4 6)
   31   99    2:                   PrintableString 'DE'
   32          :                   }
   33          :                 }
   34  103   28:               SET {
   35  105   26:                 SEQUENCE {
   36  107    3:                   OBJECT IDENTIFIER organizationName (2 5 4 10)
   37  112   19:                   UTF8String 'Deutsche Telekom AG'
   38          :                   }
   39          :                 }
   40  133   18:               SET {
   41  135   16:                 SEQUENCE {
   42  137    3:                   OBJECT IDENTIFIER organizationalUnitName (2 5 4 11)
   43  142    9:                   UTF8String 'T-TeleSec'
   44          :                   }
   45          :                 }
   46  153   20:               SET {
   47  155   18:                 SEQUENCE {
   48  157    3:                   OBJECT IDENTIFIER commonName (2 5 4 3)
   49  162   11:                   UTF8String 'TKS CA 1:PN'
   50          :                   }
   51          :                 }
   52  175   10:               SET {
   53  177    8:                 SEQUENCE {
   54  179    3:                   OBJECT IDENTIFIER serialNumber (2 5 4 5)
   55  184    1:                   PrintableString '1'
   56          :                   }
   57          :                 }
   58  187   20:               SET {
   59  189   18:                 SEQUENCE {
   60  191    3:                   OBJECT IDENTIFIER pseudonym (2 5 4 65)
   61  196   11:                   UTF8String 'TKS CA 1:PN'
   62          :                   }
   63          :                 }
   64          :               }
   65  209   30:             SEQUENCE {
   66  211   13:               UTCTime 05/02/2013 12:35:12 GMT
   67  226   13:               UTCTime 05/02/2023 12:35:12 GMT
   68          :               }
   69  241   75:             SEQUENCE {
   70  243   11:               SET {
   71  245    9:                 SEQUENCE {
   72  247    3:                   OBJECT IDENTIFIER countryName (2 5 4 6)
   73  252    2:                   PrintableString 'DE'
   74          :                   }
   75          :                 }
   76  256   23:               SET {
   77  258   21:                 SEQUENCE {
   78  260    3:                   OBJECT IDENTIFIER commonName (2 5 4 3)
   79  265   14:                   UTF8String 'TKS 13 A 04562'
   80          :                   }
   81          :                 }
   82  281   10:               SET {
   83  283    8:                 SEQUENCE {
   84  285    3:                   OBJECT IDENTIFIER serialNumber (2 5 4 5)
   85  290    1:                   PrintableString '1'
   86          :                   }
   87          :                 }
   88  293   23:               SET {
   89  295   21:                 SEQUENCE {
   90  297    3:                   OBJECT IDENTIFIER pseudonym (2 5 4 65)
   91  302   14:                   UTF8String 'TKS 13 A 04562'
   92          :                   }
   93          :                 }
   94          :               }
   95  318   89:             SEQUENCE {
   96  320   19:               SEQUENCE {
   97  322    7:                 OBJECT IDENTIFIER ecPublicKey (1 2 840 10045 2 1)
   98  331    8:                 OBJECT IDENTIFIER prime256v1 (1 2 840 10045 3 1 7)
   99          :                 }
  100  341   66:               BIT STRING
  101          :                 04 A4 1C 91 05 47 42 1F FB F9 08 BF 2E 4A 53 B6
  102          :                 FB 9E D7 25 09 04 D7 71 9A 89 E0 5A 32 E6 DD 93
  103          :                 19 9F E2 99 34 4F 7C 43 EB DC 71 23 47 7B BA 34
  104          :                 BE 39 A7 CF 0F F5 82 E5 D1 FC 3F 10 4B 8E 6D 4F
  105          :                 4F
  106          :               }
  107  409   82:             [3] {
  108  411   80:               SEQUENCE {
  109  413   31:                 SEQUENCE {
  110  415    3:                   OBJECT IDENTIFIER
  111          :                     authorityKeyIdentifier (2 5 29 35)
  112  420   24:                   OCTET STRING, encapsulates {
  113  422   22:                     SEQUENCE {
  114  424   20:                       [0]
  115          :                     CB 03 DF 18 AD 26 0E C8 99 56 83 C6 CD 1D EA 61
  116          :                     02 19 60 39
  117          :                       }
  118          :                     }
  119          :                   }
  120  446   29:                 SEQUENCE {
  121  448    3:                   OBJECT IDENTIFIER subjectKeyIdentifier (2 5 29 14)
  122  453   22:                   OCTET STRING, encapsulates {
  123  455   20:                     OCTET STRING
  124          :                     D2 A5 17 30 59 88 96 56 72 8A 1E B1 D6 02 18 69
  125          :                     06 00 5A BA
  126          :                     }
  127          :                   }
  128  477   14:                 SEQUENCE {
  129  479    3:                   OBJECT IDENTIFIER keyUsage (2 5 29 15)
  130  484    1:                   BOOLEAN TRUE
  131  487    4:                   OCTET STRING, encapsulates {
  132  489    2:                     BIT STRING 7 unused bits
  133          :                       '1'B (bit 0)
  134          :                     }
  135          :                   }
  136          :                 }
  137          :               }
  138          :             }
  139  493   13:           SEQUENCE {
  140  495    9:             OBJECT IDENTIFIER
  141          :               sha256WithRSAEncryption (1 2 840 113549 1 1 11)
  142  506    0:             NULL
  143          :             }
  144  508  257:           BIT STRING
  145          :             04 3C 56 07 7F B9 EB 93 4E FE CB 23 56 EC 73 B3
  146          :             10 9A A4 80 91 45 56 77 48 B0 AC BA 25 E4 52 96
  147          :             62 55 41 30 70 4C 0C 81 77 F3 E9 52 4E C9 DE FB
  148          :             11 70 82 37 1E A1 CF F3 48 8C 26 F3 59 41 25 F5
  149          :             39 55 56 80 42 D1 9E 63 90 41 BC C4 B2 4D 1C 66
  150          :             1B CF 88 95 96 CB A0 83 B8 D3 D4 C9 0E E2 E1 89
  151          :             A6 BE E3 2B FB 75 6F 36 43 BF 4E 8D FE 9C B2 79
  152          :             ED 61 8F 63 74 6F C9 B4 AC C2 16 F6 A9 CD 00 0E
  153          :             A7 21 7E 84 21 6A 69 FD 88 79 51 9E A4 63 8A 5B
  154          :             00 CE 9F 8E B1 F5 E1 97 1F 53 7B A0 2A 5E 6C D7
  155          :             62 9F 4B 11 45 43 44 1D 4B FF 8F 87 7D BB B6 38
  156          :             E0 EE 0A 2B 55 72 43 58 66 61 9A 70 8A 34 18 E7
  157          :             C1 68 05 7F C1 03 A3 11 1D ED A3 AD 6C F8 34 B6
  158          :             63 6A EB 53 C8 21 13 9C 6E C4 68 B4 2D F5 AA 59
  159          :             6D 42 C7 0D 24 0B 7F 28 8F 76 80 02 BE 8B 52 5F
  160          :             2E B4 79 17 8B D9 9E E2 28 58 72 E5 F1 23 7E CF
  161          :           }
  162          :         }  -- end certificates
  163  771  447:       SET {  -- signerInfos
  164  775  443:         SEQUENCE {  -- SignerInfo
  165  779    1:           INTEGER 1  -- version
  166  782  127:           SEQUENCE {  --sid.signerIdentifier
  167  784  119:             SEQUENCE {
  168  786   11:               SET {
  169  788    9:                 SEQUENCE {
  170  790    3:                   OBJECT IDENTIFIER countryName (2 5 4 6)
  171  795    2:                   PrintableString 'DE'
  172          :                   }
  173          :                 }
  174  799   28:               SET {
  175  801   26:                 SEQUENCE {
  176  803    3:                   OBJECT IDENTIFIER organizationName (2 5 4 10)
  177  808   19:                   UTF8String 'Deutsche Telekom AG'
  178          :                   }
  179          :                 }
  180  829   18:               SET {
  181  831   16:                 SEQUENCE {
  182  833    3:                   OBJECT IDENTIFIER organizationalUnitName (2 5 4 11)
  183  838    9:                   UTF8String 'T-TeleSec'
  184          :                   }
  185          :                 }
  186  849   20:               SET {
  187  851   18:                 SEQUENCE {
  188  853    3:                   OBJECT IDENTIFIER commonName (2 5 4 3)
  189  858   11:                   UTF8String 'TKS CA 1:PN'
  190          :                   }
  191          :                 }
  192  871   10:               SET {
  193  873    8:                 SEQUENCE {
  194  875    3:                   OBJECT IDENTIFIER serialNumber (2 5 4 5)
  195  880    1:                   PrintableString '1'
  196          :                   }
  197          :                 }
  198  883   20:               SET {
  199  885   18:                 SEQUENCE {
  200  887    3:                   OBJECT IDENTIFIER pseudonym (2 5 4 65)
  201  892   11:                   UTF8String 'TKS CA 1:PN'
  202          :                   }
  203          :                 }
  204          :               }
  205  905    4:             INTEGER 649228179
  206          :             } -- end signerIdentifier
  207  911   13:           SEQUENCE {  -- digestAlgorithm
  208  913    9:             OBJECT IDENTIFIER sha-256 (2 16 840 1 101 3 4 2 1)
  209  924    0:             NULL
  210          :             }
  211  926  206:           [0] {  -- signedAttrs
  212  929   24:             SEQUENCE {
  213  931    9:               OBJECT IDENTIFIER contentType (1 2 840 113549 1 9 3)
  214  942   11:               SET {
  215  944    9:                 OBJECT IDENTIFIER data (1 2 840 113549 1 7 1)
  216          :                 }
  217          :               }
  218  955   28:             SEQUENCE {
  219  957    9:               OBJECT IDENTIFIER signingTime (1 2 840 113549 1 9 5)
  220  968   15:               SET {
  221  970   13:                 UTCTime 08/05/2020 08:30:09 GMT
  222          :                 }
  223          :               }
  224  985   42:             SEQUENCE {
  225  987    9:               OBJECT IDENTIFIER '1 2 840 113549 1 9 52'
  226  998   29:               SET {
  227 1000   27:                 SEQUENCE {
  228 1002   13:                   SEQUENCE {
  229 1004    9:                     OBJECT IDENTIFIER
  230          :                       sha-256 (2 16 840 1 101 3 4 2 1)
  231 1015    0:                     NULL
  232          :                     }
  233 1017   10:                   [1] {
  234 1019    8:                     OBJECT IDENTIFIER
  235          :                       ecdsaWithSHA256 (1 2 840 10045 4 3 2)
  236          :                     }
  237          :                   }
  238          :                 }
  239          :               }
  240 1029   47:             SEQUENCE {
  241 1031    9:               OBJECT IDENTIFIER messageDigest (1 2 840 113549 1 9 4)
  242 1042   34:               SET {
  243 1044   32:                 OCTET STRING
  244          :                   A5 F1 A3 86 07 5E 07 9F 44 D3 9F 89 FF C6 4A E6
  245          :                   A0 A3 7F DC F3 38 95 CC 7C A0 E8 17 DA E3 55 D6
  246          :                 }
  247          :               }
  248 1078   55:             SEQUENCE {
  249 1080   11:               OBJECT IDENTIFIER
  250          :                 signingCertificateV2 (1 2 840 113549 1 9 16 2 47)
  251 1093   40:               SET {
  252 1095   38:                 SEQUENCE {
  253 1097   36:                   SEQUENCE {
  254 1099   34:                     SEQUENCE {
  255 1101   32:                       OCTET STRING
  256          :                     DA AF A8 84 FE 82 0A BA 58 4C 4D 56 F8 31 46 4A
  257          :                     E1 6B 56 66 40 9B F1 5D F1 2B 6C 90 8F 76 AD 23
  258          :                       }
  259          :                     }
  260          :                   }
  261          :                 }
  262          :               }
  263          :             }  -- end signedAttrs
  264 1135   10:           SEQUENCE {  -- signatureAlgorithm
  265 1137    8:             OBJECT IDENTIFIER ecdsaWithSHA256 (1 2 840 10045 4 3 2)
  266          :             }
  267 1147   71:           OCTET STRING, encapsulates {  -- signature
  268 1149   69:             SEQUENCE {
  269 1151   33:               INTEGER
  270          :                 00 A0 DE 18 D7 2A 72 FF E7 E4 47 27 80 67 F3 85
  271          :                 0C 90 72 44 18 C3 30 18 7C 5A A1 E8 7F 1B C9 48
  272          :                 3D
  273 1186   32:               INTEGER
  274          :                 36 B1 15 F6 DA BA 02 16 48 64 91 17 32 D5 43 84
  275          :                 35 80 0D E3 EF 00 10 FD BF 4D 26 8A 54 CD 72 BD
  276          :               }
  277          :             }
  278 1220    0:           [1]  -- unsignedAttrs
  279          :             Error: Object has zero length.
  280          :           }
  281          :         }
  282          :       }
  283          :     }
  284          :   }