Error in Pkcs15 structure?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Error in Pkcs15 structure?

novakv
Hi boys,

I have a just one remark obout the ASN1 structure of key objects on the card. SubclassAtributes  member of PKCS15Object is not present, but the EXTERNAL tag [0] is present, which I suppose is an error (see the Asn1 dump below ). Please check the PKCS15 spec.

Vit

> dumpf -pa 3f00/5015/4402

   2   63: SEQUENCE {
   4   20:   SEQUENCE {
   6   11:     UTF8String 'Private Key'
  19    2:     BIT STRING 6 unused bits
         :       '11'B
  23    1:     OCTET STRING 01
         :     }
  26   15:   SEQUENCE {
  28    1:     OCTET STRING 45
  31    3:     BIT STRING 6 unused bits
         :       '0111010001'B
  36    2:     BIT STRING 3 unused bits
         :       '10111'B
  40    1:     INTEGER 0
         :     }
  43    0:   [0] <- HERE: [0] is redundant
         :     Error: Object has zero length.    
  45   20:   [1] {
  47   18:     SEQUENCE {
  49   12:       SEQUENCE {
  51   10:         OCTET STRING 3F 00 50 15 4B 01 30 45 00 12
         :         }
  63    2:       INTEGER 1024
         :       }
         :     }
         :   }

0 warnings, 1 error.
_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc.org/cgi-bin/mailman/listinfo/opensc-devel