| 1 |
Revision history for Perl extension Crypt::CBC. |
| 2 |
|
| 3 |
3.07 -- Sun Jul 27 11:49:54 ADT 2025 |
| 4 |
|
| 5 |
[Changes Since 3.04] |
| 6 |
- New maintainer |
| 7 |
- Fix CVE-2025-2814 by using Crypt::URandom |
| 8 |
- 3.05 Fixed bug involving manually-specified key not being used in some circumstances |
| 9 |
- Fix decryption of ciphertext created with 'header' => 'randomiv' |
| 10 |
- Fixed bug in which manually-specified key and -pkdf=>"none" was not having effect |
| 11 |
- Converted build process to Dist::Zilla |
| 12 |
- Miscellaneous minor Dist::Zilla relates changes |
| 13 |
|
| 14 |
[Detailed Change Log] |
| 15 |
- 74e3a10 Increment repo version |
| 16 |
- feb4b31 Rename vulnerabilities file add CVE-2025-2814 |
| 17 |
- 236c363 Update .gitignore |
| 18 |
- 4a39da8 Fix spelling error |
| 19 |
- 99d336a Automate version with Dist::Zilla |
| 20 |
- 89ac06d Convert build process to Dist::Zilla |
| 21 |
- 784d599 Fix CVE-2025-2814 by using Crypt::URandom to read random bytes |
| 22 |
- 81a8f77 Add test for github issue #7 |
| 23 |
- 40d0e13 Increment version |
| 24 |
- 160af60 Fix decryption of ciphertext created with 'header' => 'randomiv' |
| 25 |
- 524db90 Fixed bug in which manually-specified key and -pkdf=>"none" was not having effect |
| 26 |
|
| 27 |
3.05 Thu 20 May 2021 12:00:18 PM EDT |
| 28 |
- Fixed bug involving manually-specified key not being used in some circumstances. |
| 29 |
|
| 30 |
3.04 Mon 17 May 2021 10:58:37 AM EDT |
| 31 |
- Fixed bug involving manually-specified IV not being used in some circumstances. |
| 32 |
|
| 33 |
3.03 Sun 18 Apr 2021 10:54:19 PM EDT |
| 34 |
- Fixed bug which caused an extraneous block of garbage data to be appended to encrypted |
| 35 |
string when "nopadding" specified and plaintext is even multiple of blocksize. |
| 36 |
|
| 37 |
3.02 |
| 38 |
- CTR mode now requires the Math::Int128 module, which gives a ~5x performance |
| 39 |
boost over Math::BigInt. |
| 40 |
|
| 41 |
3.01 |
| 42 |
- Warn when the deprecated opensslv1 PBKDF (key derivation function) is used |
| 43 |
for encryption. Turn off with -nodeprecate=>1 or by choosing a different |
| 44 |
PBKDF, such as -pbkdf=>'pbkdf2'. |
| 45 |
- Fix a regression when passing the legacy -salt=>1 argument. |
| 46 |
|
| 47 |
3.00 Sun Feb 7 10:28:08 EST 2021 |
| 48 |
- Released version 3.00 in recognition of multiple new features |
| 49 |
and cleanups. |
| 50 |
|
| 51 |
2.37 Sun Feb 7 10:20:17 EST 2021 |
| 52 |
- Added better argument checking. |
| 53 |
- Fixed long-standing standard padding bug: plaintext ending with |
| 54 |
bytes between 0x00 and 0x0A would be truncated in some conditions. |
| 55 |
- Fixed Rijndael_compat padding. |
| 56 |
|
| 57 |
2.36 Wed 03 Feb 2021 09:19:06 AM EST |
| 58 |
- Add support for OFB, CFB and CTR chain modes. |
| 59 |
- New dependency: Math::BigInt |
| 60 |
|
| 61 |
2.35 Sun Jan 31 22:02:42 EST 2021 |
| 62 |
- Add support for PBKDF2 key derivation algorithm |
| 63 |
- New dependencies: Digest::SHA, Crypt::PBKDF2, Crypt::Cipher::AES |
| 64 |
|
| 65 |
2.34 Fri Jan 29 18:08:12 EST 2021 |
| 66 |
- Support for openssl SHA-256 key derivation algorithm |
| 67 |
|
| 68 |
2.33 Tue Jul 30 16:02:04 EDT 2013 |
| 69 |
- Fix minor RT bugs 83175 and 86455. |
| 70 |
|
| 71 |
2.32 Fri Dec 14 14:20:17 EST 2012 |
| 72 |
- Fix "Taint checks are turned on and your key is tainted" error when autogenerating salt and IV. |
| 73 |
|
| 74 |
2.31 Tue Oct 30 07:03:40 EDT 2012 |
| 75 |
- Fixes to regular expressions to avoid rare failures to |
| 76 |
correctly strip padding in decoded messages. |
| 77 |
- Add padding type = "none". |
| 78 |
- Both fixes contributed by Bas van Sisseren. |
| 79 |
|
| 80 |
2.29 Tue Apr 22 10:22:37 EDT 2008 |
| 81 |
- Fixed errors that occurred when encrypting/decrypting utf8 strings |
| 82 |
in Perl's more recent than 5.8.8. |
| 83 |
|
| 84 |
2.28 Mon Mar 31 10:46:25 EDT 2008 |
| 85 |
- Fixed bug in onesandzeroes test that causes it to fail with Rijndael module |
| 86 |
is not installed. |
| 87 |
|
| 88 |
2.27 Fri Mar 28 10:13:32 EDT 2008 |
| 89 |
- When taint mode is turned on and user is using a tainted key, explicitly check |
| 90 |
tainting of key in order to avoid "cryptic" failure messages from some crypt |
| 91 |
modules. |
| 92 |
|
| 93 |
2.26 Thu Mar 20 16:41:23 EDT 2008 |
| 94 |
- Fixed onezeropadding test, which was not reporting its test count |
| 95 |
properly. |
| 96 |
|
| 97 |
2.25 Fri Jan 11 15:26:27 EST 2008 |
| 98 |
- Fixed failure of oneandzeroes padding when plaintext size is |
| 99 |
an even multiple of blocksize. |
| 100 |
- Added new "rijndael_compat" padding method, which is compatible |
| 101 |
with the oneandzeroes padding method used by Crypt::Rijndael in |
| 102 |
CBC mode. |
| 103 |
|
| 104 |
2.24 Fri Sep 28 11:21:07 EDT 2007 |
| 105 |
- Fixed failure to run under taint checks with Crypt::Rijndael |
| 106 |
or Crypt::OpenSSL::AES (and maybe other Crypt modules). See |
| 107 |
http://rt.cpan.org/Public/Bug/Display.html?id=29646. |
| 108 |
|
| 109 |
2.23 Fri Apr 13 14:50:21 EDT 2007 |
| 110 |
- Added checks for other implementations of CBC which add no |
| 111 |
standard padding at all when cipher text is an even multiple |
| 112 |
of the block size. |
| 113 |
|
| 114 |
2.22 Sun Oct 29 16:50:32 EST 2006 |
| 115 |
- Fixed bug in which plaintext encrypted with the -literal_key |
| 116 |
option could not be decrypted using a new object created with |
| 117 |
the same -literal_key. |
| 118 |
- Added documentation confirming that -literal_key must be accompanied by a |
| 119 |
-header of 'none' and a manually specificied IV. |
| 120 |
|
| 121 |
2.21 Mon Oct 16 19:26:26 EDT 2006 |
| 122 |
- Fixed bug in which new() failed to work when first option is -literal_key. |
| 123 |
|
| 124 |
2.20 Sat Aug 12 22:30:53 EDT 2006 |
| 125 |
- Added ability to pass a preinitialized Crypt::* block cipher object instead of |
| 126 |
the class name. |
| 127 |
- Fixed a bug when processing -literal_key. |
| 128 |
|
| 129 |
2.19 Tue Jul 18 18:39:57 EDT 2006 |
| 130 |
- Renamed Crypt::CBC-2.16-vulnerability.txt so that package installs correctly under |
| 131 |
Cygwin |
| 132 |
|
| 133 |
2.18 2006/06/06 23:17:04 |
| 134 |
- added more documentation describing how to achieve compatibility with old encrypted messages |
| 135 |
|
| 136 |
2.17 Mon Jan 9 18:22:51 EST 2006 |
| 137 |
-IMPORTANT NOTE: Versions of this module prior to 2.17 were incorrectly |
| 138 |
using 8 byte IVs when generating the old-style RandomIV style header |
| 139 |
(as opposed to the new-style random salt header). This affects data |
| 140 |
encrypted using the Rijndael algorithm, which has a 16 byte blocksize, |
| 141 |
and is a significant security issue. |
| 142 |
|
| 143 |
The bug has been corrected in versions 2.17 and higher by making it |
| 144 |
impossible to use 16-byte block ciphers with RandomIV headers. You may |
| 145 |
still read legacy encrypted data by explicitly passing the |
| 146 |
-insecure_legacy_decrypt option to Crypt::CBC->new(). |
| 147 |
|
| 148 |
-The salt, iv and key are now reset before each complete encryption |
| 149 |
cycle. This avoids inadvertent reuse of the same salt. |
| 150 |
|
| 151 |
-A new -header option has been added that allows you to select |
| 152 |
among the various types of headers, and avoids the ambiguity |
| 153 |
of having multiple interacting options. |
| 154 |
|
| 155 |
-A new random_bytes() method provides access to /dev/urandom on |
| 156 |
suitably-equipped hardware. |
| 157 |
|
| 158 |
2.16 Tue Dec 6 14:17:45 EST 2005 |
| 159 |
- Added two new options to new(): |
| 160 |
-keysize => <bytes> Force the keysize -- useful for Blowfish |
| 161 |
-blocksize => <bytes> Force the blocksize -- not known to be useful |
| 162 |
|
| 163 |
("-keysize=>16" is necessary to decrypt OpenSSL messages encrypted with |
| 164 |
Blowfish) |
| 165 |
|
| 166 |
2.15 Thu Nov 17 17:34:28 EST 2005 |
| 167 |
- -add_header=>0 now explicitly turns off any attempt of parsing the header |
| 168 |
in decrypt routines. |
| 169 |
|
| 170 |
2.14 Thu May 5 16:08:15 EDT 2005 |
| 171 |
- RandomIV in message header overrides manually-supplied -salt, as one |
| 172 |
would expect it should. |
| 173 |
|
| 174 |
2.13 Fri Apr 22 13:01:32 EDT 200 |
| 175 |
- Added OpenSSL compatibility |
| 176 |
- Salt and IV generators take advantage of /dev/urandom device, if available |
| 177 |
- Reorganized internal structure for coding clarity |
| 178 |
- Added regression test for PCBC mode |
| 179 |
|
| 180 |
2.12 Thu Jun 17 11:52:04 EDT 2004 |
| 181 |
- quenched (again) uninitialized variable warnings |
| 182 |
|
| 183 |
2.11 Thu Jun 3 12:07:33 EDT 2004 |
| 184 |
-Fixed bug reported by Joshua Brown that caused certain length |
| 185 |
strings to not encrypt properly if ending in a "0" character. |
| 186 |
|
| 187 |
2.10 Sat May 29 13:10:05 EDT 2004 |
| 188 |
-Fixed Rijndael compat problems |
| 189 |
|
| 190 |
2.09 Thu May 27 11:18:06 EDT 2004 |
| 191 |
-Quenched uninitialized variable warnings |
| 192 |
|
| 193 |
2.08 Wed Sep 11 08:12:49 EDT 2002 |
| 194 |
-Bug fix from Chris Laas to fix custom padding |
| 195 |
|
| 196 |
2.07 Thu Aug 8 14:44:52 EDT 2002 |
| 197 |
-Bug fixes from Stephen Waters to fix space padding |
| 198 |
-Lots of regression tests from Stephen Waters |
| 199 |
|
| 200 |
2.05 Tue Jun 11 22:18:04 EDT 2002 |
| 201 |
-Makes zero-and-one padding compatible with Crypt::Rijndael::MODE_CBC. |
| 202 |
-Lots of improvements to padding mechanisms from Stephen Waters |
| 203 |
|
| 204 |
2.04 Tue Jun 11 22:18:04 EDT 2002 |
| 205 |
WITHDRAWN VERSION DO NOT USE |
| 206 |
|
| 207 |
2.03 Mon Feb 4 15:41:51 EST 2002 |
| 208 |
-Patch from Andy Turner <[email protected]> to allow backward |
| 209 |
compatibility with old versions when key length exceeded max. |
| 210 |
|
| 211 |
2.02 Thu Jan 24 00:15:52 EST 2002 |
| 212 |
- Default to pre-2.00 style padding, because Jody's default padding |
| 213 |
method was not binary safe. |
| 214 |
|
| 215 |
2.01 Mon Dec 10 12:11:35 EST 2001 |
| 216 |
- Removed debugging code. |
| 217 |
|
| 218 |
2.00 Tue Oct 31, 2000 |
| 219 |
- Patches for foreign program compatibility, initialization vectors |
| 220 |
and padding methods from Jody Biggs <[email protected]> |
| 221 |
|
| 222 |
1.25 Thu Jun 8 11:56:28 EDT 2000 |
| 223 |
- Bug fix didn't get into version 1.24. Is in version 1.25 |
| 224 |
|
| 225 |
1.24 Tue Jun 6 17:35:18 EDT 2000 |
| 226 |
- Fixed a bug that prevented a DES and an IDEA object from being |
| 227 |
used simultaneously. |
| 228 |
|
| 229 |
1.22 Wed Jan 26 19:07:30 EST 2000 |
| 230 |
- Added support for Crypt::Blowfish (available from www.cryptix.org) |
| 231 |
- Fixed failure to encrypt data files < 8 bytes |
| 232 |
- Fixed -w warning when decrypting data files < 8 bytes |
| 233 |
|
| 234 |
1.21 Mon Nov 29 17:11:17 EST 1999 |
| 235 |
- Generate random initialization vector. |
| 236 |
- Use same encryption format as Ben Laurie's patches to OpenSSL (versions >= 0.9.5) |
| 237 |
|
| 238 |
1.20 Sun Dec 20 3:58:01 1998 MET |
| 239 |
- Folded in bug fixes from Devin Carraway <[email protected]> |
| 240 |
(chiefly having to do with finish() being called with a |
| 241 |
zero-length buffer). |
| 242 |
|
| 243 |
1.10 Thu Sep 11 09:15:01 1998 |
| 244 |
- Changed package name to Crypt::CBC |
| 245 |
|
| 246 |
1.00 Tue Jun 16 07:37:35 1998 |
| 247 |
- original version; created by h2xs 1.18 |
| 248 |
|