Debian Codegraph @

usr/lib/ep11_stdll/ep11tok.conf

raw
1 #
2 # EP11 token configuration
3 #
4 # In order to use the EP11 Token you need to specify a list of
5 # adapter/domain pairs installed and configured on your system using
6 # the APQN_ALLOWLIST or APQN_ANY keywords, see below. All other
7 # settings are optional.
8 #
9 # --------------------------------------------------------------------------
10 #
11 # To force that the default for CKA_SENSITIVE is CK_TRUE for
12 # secret keys specify the following option:
13 #
14 # FORCE_SENSITIVE
15 #
16 # --------------------------------------------------------------------------
17 #
18 # To enable strict-mode, specify the following option:
19 #
20 # STRICT_MODE
21 #
22 # In strict-mode all session-keys with CKA_PRIVATE=TRUE will strictly belong
23 # to the PKCS#11 session that created it. When the PKCS#11 session ends,
24 # all session keys created for this session can no longer be used.
25 # The strict-mode mode can not be enabled together with the FIPS-session mode.
26 #
27 # --------------------------------------------------------------------------
28 #
29 # In VHSM-mode (virtual-HSM), all keys with CKA_PRIVATE=TRUE generated by
30 # the EP11 token will strictly belong to the EP11 token that created it.
31 # Every EP11 token requires a VHSM-pin to be set using the pkcsep11_session
32 # tool.
33 # The VHSM-mode mode can not be enabled together with the FIPS-session mode.
34 #
35 # VHSM_MODE
36 #
37 # --------------------------------------------------------------------------
38 #
39 # In FIPS-session mode a USER session is required to be able to access any kind
40 # of key objects, regardless of the setting of the CKA_PRIVATE and CKA_TOKEN
41 # attributes. That is, a C_Login must be performed with the USER pin to be able
42 # to create or use key objects. Furthermore all keys generated by the
43 # EP11 token will strictly belong to the EP11 token that created it.
44 # Every EP11 token requires a FIPS-pin to be set using the pkcsep11_session
45 # tool. In FIPS-sesion mode, a FIPS approved algorithm is used to login the
46 # session into the EP11 adapter(s). This requires certain firmware support
47 # from the adapter(s) as well as from the EP11 host library.
48 # The FIPS-session mode can not be enabled together with strict-mode or
49 # VHSM-mode.
50 #
51 # FIPS_SESSION_MODE
52 #
53 # --------------------------------------------------------------------------
54 #
55 # The list of mechanisms returned by C_GetMechanismList is filtered
56 # using the control point settings of the used crypto adapters.
57 # The EP11 CP-filter config file is used to associate certain
58 # control points with mechanisms that are dependent on these control
59 # points. The default CP-filter config file is 'ep11cpfilter.conf' located
60 # in the same directory as this EP11 token configuration file.
61 # You can optionally specify the name and/or location of the CP-filter
62 # file:
63 #
64 # CPFILTER /etc/opencryptoki/ep11cpfilter.conf
65 #
66 # --------------------------------------------------------------------------
67 #
68 # To enable optimization of single part Sign/Verify and Encrypt/Decrypt
69 # operations specify the following option:
70 #
71 # OPTIMIZE_SINGLE_PART_OPERATIONS
72 #
73 # --------------------------------------------------------------------------
74 #
75 # To optimize digest operations using CPACF the libica library is used.
76 # Use the DIGEST_LIBICA option to control which libica library is loaded.
77 # Specify the path of the libica library to use a specific libica library,
78 # or specify 'DEFAULT' to use the system default libica library.
79 # Specify 'OFF' to turn digest optimizations off.
80 #
81 # DIGEST_LIBICA <libica-path> | DEFAULT | OFF
82 #
83 # --------------------------------------------------------------------------
84 #
85 # By default the random number generator of the EP11 cypto adatper is used to
86 # generate random data. Specify the USE_PRANDOM option to read random data from
87 # /dev/prandom instead (or /dev/urandom if /dev/prandom is not available).
88 #
89 # USE_PRANDOM
90 #
91 # --------------------------------------------------------------------------
92 #
93 # To optimize encrypt/decrypt and sign/verify performance, a corresponding
94 # protected key can be created for AES and EC secure keys and added to the
95 # secure key.
96 # This protected key is then used for certain mechanisms via CPACF, instead of
97 # performing the function via the EP11 coprocessor.
98 # IBM specific boolean attribute CKA_IBM_PROTKEY_EXTRACTABLE must be true to
99 # make a key eligible for protected key support. CKA_IBM_PROTKEY_EXTRACTABLE
100 # and CKA_EXTRACTABLE cannot both be true. The default value of
101 # CKA_IBM_PROTKEY_EXTRACTABLE is false.
102 #
103 # AES-XTS related mechanisms are only available if the PKEY_MODE option is not
104 # disabled and additional hardware and firmware prerequisites are met. AES-XTS
105 # is not supported via the EP11 coprocessor itself.
106 #
107 # PKEY_MODE DISABLED | DEFAULT | ENABLE4NONEXTR | ENABLE4EXTR | ENABLE4ALL
108 #
109 # DISABLED : Protected key support disabled. All key operations
110 # are performed via EP11 coprocessor, even if a
111 # given key object has a protected key.
112 #
113 # DEFAULT : If the application did not specify CKA_EXTRACTABLE
114 # or CKA_IBM_PROTKEY_EXTRACTABLE, new keys get default
115 # values for CKA_EXTRACTABLE (true) and
116 # CKA_IBM_PROTKEY_EXTRACTABLE (false).
117 #
118 # ENABLE4NONEXTR : If the application specified CKA_EXTRACTABLE=false,
119 # but not CKA_IBM_PROTKEY_EXTRACTABLE, new keys get
120 # CKA_IBM_PROTKEY_EXTRACTABLE=true internally.
121 #
122 # Control point 75 (XCP_CPB_ALLOW_COMBINED_EXTRACT) must be enabled for all
123 # APQNs accessible by the token for the following parameters.
124 #
125 # ENABLE4EXTR : If the application did not specify
126 # CKA_IBM_PROTKEY_EXTRACTABLE in its template, new keys
127 # of any type with CKA_EXTRACTABLE=true get
128 # CKA_IBM_PROTKEY_EXTRACTABLE=true and a protected key
129 # is automatically created at first use of the key.
130 #
131 # ENABLE4ALL : If the application did not specify
132 # CKA_IBM_PROTKEY_EXTRACTABLE in its template, new keys
133 # of any type, regardless of the CKA_EXTRACTABLE
134 # attribute, get CKA_IBM_PROTKEY_EXTRACTABLE=true and
135 # a protected key is automatically created at first
136 # use of the key.
137 #
138 # --------------------------------------------------------------------------
139 #
140 # Specify the expected wrapping key verification pattern. When specified, all
141 # APQNs configured for the token must have been set up with this wrapping key
142 # verification pattern.
143 # You can use the TKE or ep11info to query the current wrapping key verification
144 # pattern of an APQN:
145 # ep11info -m <adapter> -d <domain> -D
146 # You can also find the wrapping key verification pattern for EP11 APQNs
147 # in sysfs: 'cat /sys/bus/ap/devices/<card>.<domain>/mkvps'
148 #
149 # EXPECTED_WKVP "<wkvp as 16 bytes hex string>"
150 #
151 # --------------------------------------------------------------------------
152 #
153 # There are 2 ways to specify the crypto adapters:
154 # 1) explicitly list of adapter/domain pairs
155 #
156 # APQN_ALLOWLIST
157 # 8 13
158 # 10 13
159 # END
160 #
161 # The adapter and domain may be given in decimal,
162 # octal (with leading 0) or hexadecimal (with leading 0x):
163 #
164 # APQN_ALLOWLIST
165 # 8 0x0d
166 # 0x0a 13
167 # END
168 #
169 # Valid adapter and domain values are in the range 0...255
170 #
171 # 2) any available crypto adapters
172 #
173 # APQN_ANY
174 #
175
176 APQN_ANY