Debian Codegraph @

man/man5/strength.conf.5.in

raw
1 .TH STRENGTH.CONF 5 "September 2021" "@PACKAGE_VERSION@" "openCryptoki"
2 .SH NAME
3 strength.conf \- Configuration file for openCryptoki strength configuration.
4
5 .SH DESCRIPTION
6 openCryptoki uses a strength configuration file at
7 /etc/opencryptoki/strength.conf
8
9 This configuration file allows users to configure openCryptoki
10 cryptographic key strength determination based on key attributes.
11 This file is required by openCryptoki.
12
13 .SH SYNTAX
14 This file starts with a version specification of the form
15 \fBversion strength-0\fR
16 followed by the definition of various strengths.
17
18 .P
19 Each strength definition is composed of a strength, brackets and key-value pairs.
20
21 strength number
22 {
23 ...
24 }
25
26 Supported numbers are 112, 128, 192, and 256 representing the
27 corresponding strength in bits.
28
29 Note: These definitions are optional. If a definition is missing, no
30 key can have the strength. If no strength definition is present, all
31 keys will have strength 0.
32
33 More than one key-value pair may be used within a strength description.
34
35 A key-value pair is composed of
36 .B keyword = value
37 where
38 .B value
39 is an unsigned number.
40
41 The following keywords are valid:
42
43 .TP
44 .BR MOD_EXP
45 Specifies the minimum number of bits required for RSA moduli, and DH
46 and DSA primes such that the corresponding key is of the currently
47 defined strength.
48
49 Note: This key-value pair is optional. If not present, no RSA, DH, or
50 DSA key can have the currently defined strength.
51 .TP
52 .BR ECC
53 Specifies the minimum number of bits in the prime field of the
54 elliptic curve such that the corresponding key is of the currently
55 defined strength.
56
57 Note: This key-value pair is optional. If not present, no EC key can
58 have the currently defined strength.
59 .TP
60 .BR SYMMETRIC
61 Specifies the minimum number of bits required for symmetric keys such
62 that the corresponding key is of the currently defined strength.
63
64 Note: This key-value pair is optional. If not present, no symmetric
65 key can have the currently defined strength.
66 .TP
67 .BR digest
68 Specifies the minimum size in bits of digest outputs required by the
69 currently defined strength.
70
71 Note: This key-value pair is optional. If not present, this strength
72 definition does not constrain the size of digests.
73 .TP
74 .BR signature
75 Specifies the minimum size in bits of signatures required by the
76 currently defined strength.
77
78 Note: This key-value pair is optional. If not present, this strength
79 definition does not constrain the size of signatures.
80
81 .SH NOTES
82
83 The strength configuration file has to be owned by \fBroot:@pkcs_group@\fP,
84 have mode 0640, and be parsable. Otherwise, openCryptoki will return
85 \fBCKR_FUNCTION_FAILED\fR on \fBC_Initialize\fR and log a
86 corresponding message to syslog detailing the reason why the strength
87 configuration could not be used. In this case, fix the problem
88 described in syslog to be able to use openCryptoki again.
89
90 .PP
91 The pound sign ('#') is used to indicate a comment. Both the comment
92 character and any text after it, up to the end of the line, are
93 ignored. The comment character can be used at the beginning of a line
94 (including before the file version specification), after a value, and
95 before and after the braces.
96
97 .SH "SEE ALSO"
98 .PD 0
99 .TP
100 \fBstrength.conf\fP(5),
101 .TP
102 \fBopencryptoki\fP(7),
103 .TP
104 /usr/share/doc/opencryptoki/strength-example.conf
105 .PD