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