"Fossies" - the Fresh Open Source Software Archive

Member "opensc-0.22.0/src/pkcs15init/ias_adele_common.profile" (10 Aug 2021, 4959 Bytes) of package /linux/privat/opensc-0.22.0.tar.gz:


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. See also the last Fossies "Diffs" side-by-side code changes report for "ias_adele_common.profile": 0.17.0_vs_0.18.0.

    1 #
    2 # PKCS15 r/w profile for Oberthur cards
    3 #
    4 cardinfo {
    5     label       = "IAS";
    6     manufacturer    = "IAS Gemalto";
    7 
    8     max-pin-length    = 4;
    9     min-pin-length    = 4;
   10     pin-encoding    = ascii-numeric;
   11     pin-pad-char    = 0xFF;
   12 }
   13 
   14 pkcs15 {
   15     # Put certificates into the CDF itself?
   16     direct-certificates    = no;
   17     # Put the DF length into the ODF file?
   18     encode-df-length    = no;
   19     # Have a lastUpdate field in the EF(TokenInfo)?
   20     do-last-update        = yes;
   21 }
   22 
   23 option ecc {
   24     macros {
   25         odf-size        = 96;
   26         aodf-size       = 300;
   27         cdf-size        = 3000;
   28         prkdf-size      = 6700;
   29         pukdf-size      = 2300;
   30         dodf-size       = 3000;
   31         skdf-size       = 3000;
   32     }
   33 }
   34 
   35 
   36 # Define reasonable limits for PINs and PUK
   37 # Note that we do not set a file path or reference
   38 # here; that is done dynamically.
   39 PIN user-pin {
   40     attempts        = 5;
   41     max-length      = 4;
   42     min-length      = 4;
   43     flags           = 0x10; # initialized
   44     reference       = 1;
   45 }
   46 PIN so-pin {
   47     auth-id     = FF;
   48     attempts    = 5;
   49     max-length  = 4;
   50     min-length  = 4;
   51     flags       = 0xB2;
   52     reference   = 2
   53 }
   54 
   55 # Additional filesystem info.
   56 # This is added to the file system info specified in the
   57 # main profile.
   58 filesystem {
   59     DF MF {
   60         ACL     = *=CHV4;
   61         path    = 3F00;
   62         type    = DF;
   63 
   64         # This is the DIR file
   65         EF DIR {
   66             type    = EF;
   67             file-id = 2F00;
   68             size    = 128;
   69             acl     = *=NONE;
   70         }
   71 
   72         # Here comes the application DF
   73         DF PKCS15-AppDF {
   74             type    = DF;
   75             exclusive-aid	= E8:28:BD:08:0F:D2:50:00:00:04:03:01;
   76             acl     = *=NONE;
   77             size    = 5000;
   78 
   79             EF PKCS15-ODF {
   80                 file-id = 5031;
   81                 size    = 96;
   82                 ACL     = WRITE=SCBx17, UPDATE=SCBx17, READ=NONE;
   83             }
   84 
   85             EF PKCS15-TokenInfo {
   86                 file-id = 5032;
   87                 ACL     = WRITE=SCBx17, UPDATE=SCBx17, READ=NONE;
   88             }
   89 
   90             EF PKCS15-AODF {
   91                 file-id = 7001;
   92                 size    = 300;
   93                 ACL     = WRITE=SCBx17, UPDATE=SCBx17, READ=NONE;
   94             }
   95 
   96             EF PKCS15-PrKDF {
   97                 file-id = 7002;
   98                 size    = 6700;
   99                 ACL     = WRITE=SCBx17, UPDATE=SCBx17, READ=NONE;
  100             }
  101 
  102             EF PKCS15-PuKDF {
  103                 file-id = 7004;
  104                 size    = 2300;
  105                 ACL     = WRITE=SCBx17, UPDATE=SCBx17, READ=NONE;
  106             }
  107 
  108             EF PKCS15-SKDF {
  109                 file-id = 7003;
  110                 size    = 3000;
  111                 ACL     = WRITE=SCBx17, UPDATE=SCBx17, READ=NONE;
  112             }
  113 
  114             EF PKCS15-CDF {
  115                 file-id = 7005;
  116                 size    = 3000;
  117                 ACL     = WRITE=SCBx17, UPDATE=SCBx17, READ=NONE;
  118             }
  119 
  120             EF PKCS15-DODF {
  121                 file-id = 7006;
  122                 size    = 3000;
  123                 ACL     = WRITE=SCBx17, UPDATE=SCBx17, READ=NONE;
  124             }
  125 
  126             template key-domain {
  127                 # Private RSA keys
  128                 BSO private-key {
  129                     ACL     = *=NEVER;
  130                     ACL     = UPDATE=SCBx17, READ=NONE;
  131                     ACL     = PSO-COMPUTE-SIGNATURE=SCBx17, INTERNAL-AUTHENTICATE=SCBx17, PSO-DECRYPT=SCBx17, GENERATE=SCBx17;
  132                 }
  133 
  134                 # Private DES keys
  135                 BSO private-des {
  136                     size    = 24;  # 192 bits
  137                     # READ acl used instead of DECIPHER/ENCIPHER/CHECKSUM
  138                 }
  139 
  140                 # Private data
  141                 EF  private-data {
  142                     file-id = B200;
  143                     size    = 36;
  144                     ACL     = *=NONE;
  145                     ACL     =  WRITE=SCBx17, UPDATE=SCBx17, READ=SCBx17, DELETE=SCBx17;
  146                 }
  147 
  148                 # Certificate
  149                 EF certificate {
  150                     # for the profiles 'ADELE Admin. 1 & 2'
  151                     # file-id: auth: A001; sign: A002; encr: A003;
  152                     file-id = B000;
  153                     ACL     = *=NEVER;
  154                     ACL     = UPDATE=SCBx17, READ=NONE, DELETE=NONE;
  155                 }
  156 
  157                 #Public Key
  158                 BSO public-key {
  159                     ACL = *=NEVER;
  160                     ACL = INTERNAL-AUTHENTICATE=SCBx17, GENERATE=SCBx17, UPDATE=SCBx17, READ=NONE;
  161                 }
  162 
  163                 # Public DES keys
  164                 BSO public-des {
  165                     size    = 24;  # 192 bits
  166                     ACL     = *=NONE;
  167                 }
  168 
  169                 # Public data
  170                 EF  public-data {
  171                     file-id = B100;
  172                     ACL     = *=NONE;
  173                     ACL     = WRITE=SCBx17, UPDATE=SCBx17, DELETE=SCBx17;
  174                 }
  175             }
  176         }
  177     }
  178 }
  179