Card Requirements

To provide some context for the other requirements, this section gives some information about how the card is provisioned and used.

What a “Blank Card” Is

A “blank card,” which can be “created” and then used by the Microsoft Smart Card Base CSP/KSP, is a card that :

  • Contains the card operating system.
  • Contains or can virtualize necessary files and data to implement the file system.
  • Has default values for administrative and/or user PINs or keys.
  • Does not yet have the files that are discussed under “Card Creation” (the following section).
  • Is ready for card creation with no further preparation.
  • For future purposes, can provide an AID as defined in ISO 7816-4 part 8.

Card “Creation”

For a card to be useful for cryptographic operations, it must have an identity that allows it to be recognized for purposes of deployment and management and it must be usable by the Base CSP/KSP. This requires a card ID file and certain files that the Base CSP/KSP requires to be stored on the card. The operation of creating these necessary files on the card is called “creating” the card. This is done by a deployment tool and consists of the following steps:

  1. Create the card ID file, “cardid”, in the root directory of the card with everyone having Read and the administrator having Write permissions. This file contains a unique 16-byte binary identifier for the card. It is never updated or overwritten unless the card is entirely recycled.
  2. Create the cache file, “cardcf”, in the root directory, with everyone having Read/Write permission. Initial contents are 6 bytes with values of zero.
  3. Create the application map, “cardapps”, in the root directory, with everyone having Read and users having Write permissions. Initial contents are an 8 byte record that consists of the string “mscp” followed by 4 zero bytes.
  4. Create the Base CSP/CNG KSP application by a call to CardCreateDirectory, referring to application “mscp”, with everyone having Read and the users having Write permissions.
  5. Create the certificate map file, “cmapfile”, in the “mscp” directory with everyone having Read and users having Write permissions. It is initially empty.

Technically, a card is “created” after step 2, but we define that all cards shall reserve the Microsoft “mscp” application, whether it is actually used. This explains the unusual facts that the “mscp” application is always created and that a file is created within the “mscp” application. As card creation is expected to be implemented by functions within the card management DLL that Microsoft supplies, this information is provided as reference information for card minidriver authors to be able to properly support these operations in that context.

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft