2005-04-04 09:30:54 +00:00
|
|
|
#
|
|
|
|
# General purpose PKCS15 profile for SetCOS4.4 cards
|
|
|
|
#
|
|
|
|
cardinfo {
|
|
|
|
max-pin-length = 8;
|
|
|
|
pin-encoding = ascii-numeric;
|
|
|
|
pin-pad-char = 0x00;
|
|
|
|
}
|
|
|
|
|
2018-04-14 17:38:34 +00:00
|
|
|
# Additional default settings
|
2005-08-24 16:11:46 +00:00
|
|
|
option default {
|
|
|
|
macros {
|
|
|
|
protected = *=$SOPIN, READ=NONE;
|
|
|
|
mf_prot = *=NONE, CREATE=$SOPIN; # Allow to delete the MF
|
|
|
|
p15_prot = *=$SOPIN, SELECT=NONE, FILES=NONE, CREATE=NONE;
|
|
|
|
pin_prot = *=NEVER, WRITE=$SOPIN, UPDATE=$SOPIN; # WATCH OUT IF YOU CHANGE THESE!!
|
|
|
|
prkey_prot = *=NEVER, ERASE=$SOPIN, READ=NONE, CRYPTO=$PIN, UPDATE=$SOPIN;
|
|
|
|
exkey_prot = *=NEVER, ERASE=$SOPIN, READ=$PIN, UPDATE=$SOPIN;
|
2010-01-29 17:41:05 +00:00
|
|
|
so-pin-flags = initialized, soPin;
|
2005-08-24 16:11:46 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-04-14 17:38:34 +00:00
|
|
|
# Additional onepin option settings
|
2005-08-24 16:11:46 +00:00
|
|
|
option onepin {
|
|
|
|
macros {
|
|
|
|
protected = *=$PIN, READ=NONE;
|
|
|
|
mf_prot = *=NONE, CREATE=$PIN; # Allow to delete the MF
|
|
|
|
p15_prot = *=$PIN, SELECT=NONE, FILES=NONE, CREATE=NONE;
|
|
|
|
pin_prot = *=NEVER, WRITE=$PIN, UPDATE=$PIN; # WATCH OUT IF YOU CHANGE THESE!!
|
|
|
|
prkey_prot = *=NEVER, ERASE=$PIN, READ=NONE, CRYPTO=$PIN, UPDATE=$PIN; # READ: only applies on public key
|
|
|
|
exkey_prot = *=NEVER, ERASE=$PIN, READ=$PIN, UPDATE=$PIN;
|
2010-01-29 17:41:05 +00:00
|
|
|
so-pin-flags = initialized;
|
2005-08-24 16:11:46 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2005-04-04 09:30:54 +00:00
|
|
|
# Define reasonable limits for PINs and PUK
|
|
|
|
PIN user-pin {
|
|
|
|
attempts = 3;
|
2010-01-29 17:41:05 +00:00
|
|
|
flags = initialized, needs-padding;
|
2005-04-04 09:30:54 +00:00
|
|
|
}
|
|
|
|
PIN user-puk {
|
|
|
|
attempts = 5;
|
|
|
|
}
|
|
|
|
|
|
|
|
PIN so-pin {
|
|
|
|
reference = 1;
|
2010-01-29 17:41:05 +00:00
|
|
|
flags = $so-pin-flags;
|
2005-04-04 09:30:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# Additional filesystem info.
|
|
|
|
# This is added to the file system info specified in the
|
|
|
|
# main profile.
|
|
|
|
filesystem {
|
|
|
|
DF MF {
|
2005-08-24 16:11:46 +00:00
|
|
|
ACL = $mf_prot;
|
2005-04-04 09:30:54 +00:00
|
|
|
size = 42; # size = 2 + 2*(number of sub-files) -> 20 sub-files
|
|
|
|
|
|
|
|
# There's 1 pin/key file
|
|
|
|
EF pinfile {
|
|
|
|
file-id = 0080; # Recommended by Setec
|
|
|
|
structure = 0x22; # ISF key-file, Setcos V4.4 specific
|
|
|
|
record-length = 28;
|
|
|
|
size = 112; # 28 * 4 = 112 -> 1 SO + 3 user pins/puks
|
2005-08-24 16:11:46 +00:00
|
|
|
ACL = $pin_prot;
|
2005-04-04 09:30:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
DF PKCS15-AppDF {
|
|
|
|
ACL = *=$SOPIN, SELECT=NONE, FILES=NONE, CREATE=NONE;
|
|
|
|
size = 82; # size = 2 + 2*(number of sub-files) -> 40 sub-files
|
|
|
|
|
|
|
|
EF PKCS15-PrKDF {
|
2005-07-05 15:22:59 +00:00
|
|
|
file-id = 4402;
|
2005-05-10 19:58:34 +00:00
|
|
|
size = 480;
|
2005-08-24 16:11:46 +00:00
|
|
|
acl = $protected;
|
2005-04-04 09:30:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
EF PKCS15-PuKDF {
|
|
|
|
file-id = 4403;
|
2005-05-10 19:58:34 +00:00
|
|
|
size = 480;
|
2005-08-24 16:11:46 +00:00
|
|
|
acl = $protected;
|
2005-04-04 09:30:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
EF PKCS15-CDF {
|
|
|
|
file-id = 4404;
|
2005-05-10 19:58:34 +00:00
|
|
|
size = 960;
|
2005-08-24 16:11:46 +00:00
|
|
|
acl = $protected;
|
2005-04-04 09:30:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
EF PKCS15-DODF {
|
|
|
|
file-id = 4405;
|
2005-05-10 19:58:34 +00:00
|
|
|
size = 480;
|
2005-08-24 16:11:46 +00:00
|
|
|
acl = $protected;
|
2005-04-04 09:30:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
EF template-private-key {
|
2005-05-10 19:58:34 +00:00
|
|
|
file-id = 5100;
|
2005-04-04 09:30:54 +00:00
|
|
|
type = internal-ef;
|
2005-05-10 19:58:34 +00:00
|
|
|
size = 512; # enough for a 1024 bit RSA key
|
2005-08-24 16:11:46 +00:00
|
|
|
ACL = $prkey_prot;
|
2005-04-04 09:30:54 +00:00
|
|
|
}
|
|
|
|
EF template-extractable-key {
|
2005-05-10 19:58:34 +00:00
|
|
|
file-id = 5300;
|
2005-04-04 09:30:54 +00:00
|
|
|
type = internal-ef;
|
2005-05-10 19:58:34 +00:00
|
|
|
size = 512; # enough for a 1024 bit RSA key
|
2005-08-24 16:11:46 +00:00
|
|
|
ACL = $exkey_prot;
|
2005-04-04 09:30:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
EF template-public-key {
|
2005-05-10 19:58:34 +00:00
|
|
|
file-id = 5200;
|
2005-08-24 16:11:46 +00:00
|
|
|
acl = $protected;
|
2005-04-04 09:30:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
EF template-certificate {
|
2005-05-10 19:58:34 +00:00
|
|
|
file-id = 5500;
|
2005-08-24 16:11:46 +00:00
|
|
|
acl = $protected;
|
2005-04-04 09:30:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
EF template-data {
|
|
|
|
file-id = 5000;
|
|
|
|
structure = transparent;
|
2005-08-24 16:11:46 +00:00
|
|
|
acl = $protected;
|
2005-04-04 09:30:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|