]> git.ipfire.org Git - thirdparty/openssl.git/blame - CHANGES
Use function name FIPS_drbg_health_check() for health check function.
[thirdparty/openssl.git] / CHANGES
CommitLineData
81a6c781 1
f1c236f8 2 OpenSSL CHANGES
651d0aff
RE
3 _______________
4
7b3a9b00 5 Changes between 1.0.1 and 1.1.0 [xx XXX xxxx]
aaf35f11 6
4420b3b1 7 *) Use separate DRBG fields for internal and external flags. New function
cb71870d
DSH
8 FIPS_drbg_health_check() to perform on demand health checking. Add
9 generation tests to fips_test_suite with reduced health check interval to
4420b3b1
DSH
10 demonstrate periodic health checking. Add "nodh" option to
11 fips_test_suite to skip very slow DH test.
12 [Steve Henson]
13
15094852
DSH
14 *) New function FIPS_get_cipherbynid() to lookup FIPS supported ciphers
15 based on NID.
16 [Steve Henson]
17
a11f06b2
DSH
18 *) More extensive health check for DRBG checking many more failure modes.
19 New function FIPS_selftest_drbg_all() to handle every possible DRBG
20 combination: call this in fips_test_suite.
21 [Steve Henson]
22
7fdcb457
DSH
23 *) Add support for Dual EC DRBG from SP800-90. Update DRBG algorithm test
24 and POST to handle Dual EC cases.
25 [Steve Henson]
26
f55f5f77
DSH
27 *) Add support for canonical generation of DSA parameter 'g'. See
28 FIPS 186-3 A.2.3.
29
7fdcb457
DSH
30 *) Add support for HMAC DRBG from SP800-90. Update DRBG algorithm test and
31 POST to handle HMAC cases.
20f12e63
DSH
32 [Steve Henson]
33
01a9a759
DSH
34 *) Add functions FIPS_module_version() and FIPS_module_version_text()
35 to return numberical and string versions of the FIPS module number.
36 [Steve Henson]
37
c2fd5989
DSH
38 *) Rename FIPS_mode_set and FIPS_mode to FIPS_module_mode_set and
39 FIPS_module_mode. FIPS_mode and FIPS_mode_set will be implmeneted
40 outside the validated module in the FIPS capable OpenSSL.
41 [Steve Henson]
42
e0d1a2f8
DSH
43 *) Minor change to DRBG entropy callback semantics. In some cases
44 there is no mutiple of the block length between min_len and
45 max_len. Allow the callback to return more than max_len bytes
46 of entropy but discard any extra: it is the callback's responsibility
47 to ensure that the extra data discarded does not impact the
48 requested amount of entropy.
49 [Steve Henson]
50
cac4fb58
DSH
51 *) Add PRNG security strength checks to RSA, DSA and ECDSA using
52 information in FIPS186-3, SP800-57 and SP800-131A.
53 [Steve Henson]
54
b5dd1787
DSH
55 *) CCM support via EVP. Interface is very similar to GCM case except we
56 must supply all data in one chunk (i.e. no update, final) and the
57 message length must be supplied if AAD is used. Add algorithm test
58 support.
23916810
DSH
59 [Steve Henson]
60
ac892b7a
DSH
61 *) Initial version of POST overhaul. Add POST callback to allow the status
62 of POST to be monitored and/or failures induced. Modify fips_test_suite
63 to use callback. Always run all selftests even if one fails.
64 [Steve Henson]
65
06b7e5a0
DSH
66 *) XTS support including algorithm test driver in the fips_gcmtest program.
67 Note: this does increase the maximum key length from 32 to 64 bytes but
68 there should be no binary compatibility issues as existing applications
69 will never use XTS mode.
32a2d8dd
DSH
70 [Steve Henson]
71
05e24c87
DSH
72 *) Extensive reorganisation of FIPS PRNG behaviour. Remove all dependencies
73 to OpenSSL RAND code and replace with a tiny FIPS RAND API which also
74 performs algorithm blocking for unapproved PRNG types. Also do not
75 set PRNG type in FIPS_mode_set(): leave this to the application.
76 Add default OpenSSL DRBG handling: sets up FIPS PRNG and seeds with
d7a3ce98 77 the standard OpenSSL PRNG: set additional data to a date time vector.
05e24c87
DSH
78 [Steve Henson]
79
cab0595c
DSH
80 *) Rename old X9.31 PRNG functions of the form FIPS_rand* to FIPS_x931*.
81 This shouldn't present any incompatibility problems because applications
82 shouldn't be using these directly and any that are will need to rethink
83 anyway as the X9.31 PRNG is now deprecated by FIPS 140-2
84 [Steve Henson]
85
96ec46f7
DSH
86 *) Extensive self tests and health checking required by SP800-90 DRBG.
87 Remove strength parameter from FIPS_drbg_instantiate and always
88 instantiate at maximum supported strength.
89 [Steve Henson]
90
8857b380
DSH
91 *) Add ECDH code to fips module and fips_ecdhvs for primitives only testing.
92 [Steve Henson]
93
11e80de3
DSH
94 *) New algorithm test program fips_dhvs to handle DH primitives only testing.
95 [Steve Henson]
96
97 *) New function DH_compute_key_padded() to compute a DH key and pad with
98 leading zeroes if needed: this complies with SP800-56A et al.
99 [Steve Henson]
100
591cbfae
DSH
101 *) Initial implementation of SP800-90 DRBGs for Hash and CTR. Not used by
102 anything, incomplete, subject to change and largely untested at present.
103 [Steve Henson]
104
eead69f5
DSH
105 *) Modify fipscanisteronly build option to only build the necessary object
106 files by filtering FIPS_EX_OBJ through a perl script in crypto/Makefile.
107 [Steve Henson]
108
017bc57b
DSH
109 *) Add experimental option FIPSSYMS to give all symbols in
110 fipscanister.o and FIPS or fips prefix. This will avoid
5d439d69
DSH
111 conflicts with future versions of OpenSSL. Add perl script
112 util/fipsas.pl to preprocess assembly language source files
113 and rename any affected symbols.
017bc57b
DSH
114 [Steve Henson]
115
25c65429
DSH
116 *) Add selftest checks and algorithm block of non-fips algorithms in
117 FIPS mode. Remove DES2 from selftests.
118 [Steve Henson]
119
fe26d066
DSH
120 *) Add ECDSA code to fips module. Add tiny fips_ecdsa_check to just
121 return internal method without any ENGINE dependencies. Add new
25c65429 122 tiny fips sign and verify functions.
fe26d066
DSH
123 [Steve Henson]
124
b3310161
DSH
125 *) New build option no-ec2m to disable characteristic 2 code.
126 [Steve Henson]
127
30b56225
DSH
128 *) New build option "fipscanisteronly". This only builds fipscanister.o
129 and (currently) associated fips utilities. Uses the file Makefile.fips
130 instead of Makefile.org as the prototype.
131 [Steve Henson]
132
b3d8022e
DSH
133 *) Add some FIPS mode restrictions to GCM. Add internal IV generator.
134 Update fips_gcmtest to use IV generator.
135 [Steve Henson]
136
bdaa5415
DSH
137 *) Initial, experimental EVP support for AES-GCM. AAD can be input by
138 setting output buffer to NULL. The *Final function must be
139 called although it will not retrieve any additional data. The tag
140 can be set or retrieved with a ctrl. The IV length is by default 12
141 bytes (96 bits) but can be set to an alternative value. If the IV
142 length exceeds the maximum IV length (currently 16 bytes) it cannot be
143 set before the key.
144 [Steve Henson]
145
3da0ca79
DSH
146 *) New flag in ciphers: EVP_CIPH_FLAG_CUSTOM_CIPHER. This means the
147 underlying do_cipher function handles all cipher semantics itself
148 including padding and finalisation. This is useful if (for example)
149 an ENGINE cipher handles block padding itself. The behaviour of
150 do_cipher is subtly changed if this flag is set: the return value
151 is the number of characters written to the output buffer (zero is
152 no longer an error code) or a negative error code. Also if the
d45087c6 153 input buffer is NULL and length 0 finalisation should be performed.
3da0ca79
DSH
154 [Steve Henson]
155
2b3936e8
DSH
156 *) If a candidate issuer certificate is already part of the constructed
157 path ignore it: new debug notification X509_V_ERR_PATH_LOOP for this case.
158 [Steve Henson]
159
7c2d4fee
BM
160 *) Improve forward-security support: add functions
161
162 void SSL_CTX_set_not_resumable_session_callback(SSL_CTX *ctx, int (*cb)(SSL *ssl, int is_forward_secure))
163 void SSL_set_not_resumable_session_callback(SSL *ssl, int (*cb)(SSL *ssl, int is_forward_secure))
164
165 for use by SSL/TLS servers; the callback function will be called whenever a
166 new session is created, and gets to decide whether the session may be
167 cached to make it resumable (return 0) or not (return 1). (As by the
168 SSL/TLS protocol specifications, the session_id sent by the server will be
169 empty to indicate that the session is not resumable; also, the server will
170 not generate RFC 4507 (RFC 5077) session tickets.)
171
172 A simple reasonable callback implementation is to return is_forward_secure.
173 This parameter will be set to 1 or 0 depending on the ciphersuite selected
174 by the SSL/TLS server library, indicating whether it can provide forward
175 security.
176