1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 11:08:02 -06:00
Commit Graph

1930 Commits

Author SHA1 Message Date
Mounir IDRASSI
982fffe4db Reorder SM4-based cascade ciphers: apply SM4 as the final stage following external review.
The cascade order has been updated so that SM4 is applied after the other cipher(s) (e.g., Serpent). This change reflects standard cryptanalytic guidance, which shows that the overall strength of a cascade is limited by the first encryption stage. Given that SM4 uses a 128-bit key, its post-quantum brute-force resistance is lower than ciphers with a 256-bit key (such as Serpent). By placing SM4 last, we ensure that any potential weakness in SM4 cannot reduce the security margin provided by the stronger cipher.
2025-05-16 15:37:32 +09:00
Mounir IDRASSI
1839a4a746 Set release date to May 16th. 2025-05-15 10:39:35 +09:00
Mounir IDRASSI
e1c7f2f043 Silence compiler warning in HasTranslatedDocumentation function 2025-05-15 10:29:59 +09:00
Mounir IDRASSI
a6f734ae2b Linux: cleanup old build artifacts before performing new build 2025-05-15 10:29:09 +09:00
Mounir IDRASSI
a882fd65d0 Documentation: remove unused donation image files 2025-05-14 16:04:03 +09:00
Mounir IDRASSI
009d189768 Linux/macOS: Fix build error cause by missing conversion 2025-05-12 17:30:38 +09:00
Mounir IDRASSI
5ae263e6e6 Linux: Update local documentation logic to the new organization of folders under "docs/html" 2025-05-12 16:23:49 +09:00
Mounir IDRASSI
acac37b5b7 Update Release Notes and CHM. Set release date and update signed Windows drivers. 2025-05-12 10:21:58 +09:00
Mounir IDRASSI
f0a1da146e Windows: fix path errors in WiX file that blocked creation of MSI. 2025-05-12 09:12:47 +09:00
Mounir IDRASSI
3a7b57cef8 Linux/macOS: don't advertise SM4 for system encryption until its support is implement. 2025-05-12 08:33:00 +09:00
Mounir IDRASSI
09c635e592 Removed unused declarations in sm4.cpp 2025-05-11 18:13:00 +09:00
Mounir IDRASSI
b673901503 Move copyright and links to "AM Crypo", amcrypto.jp and veracrypt.jp 2025-05-11 16:02:20 +09:00
Mounir IDRASSI
4944477b5a Linux: implement automatic creation of AppImage bundle during build of generic binaries 2025-05-10 23:32:55 +09:00
Zaphod a Priest
b80e6b329b typo Readme.txt (#1538) 2025-05-10 19:12:27 +09:00
Mounir IDRASSI
3edae48717 Linux: Correct handling of documentation in case of AppImage. Code refactoring. 2025-05-10 19:09:31 +09:00
Mounir IDRASSI
01cfc169c6 Linux: Fix link error with gcc 4.8 by build AESNI version of SM4 from gcc 4.4
AESNI support was enabled starting from gcc 4.4 and so AESNI code of SM4 should be built starting from this version.
2025-05-10 17:47:28 +09:00
Mounir IDRASSI
745fab60e9 Linux: Fix AppImage compatibility by using AppImage file for sudo elevation
When VeraCrypt is run as an AppImage, the veracrypt binary resides in a SquashFS mount under /tmp which is inaccessible to root. Using this path with sudo results in a "command not found" error.

This patch detects the AppImage environment by checking both APPIMAGE and APPDIR variables, ensuring the executable path starts with APPDIR and that APPDIR starts with the expected "/tmp/.mount_Veracr" prefix. In this scenario, the AppImage file itself (APPIMAGE) is used as the executable for sudo, resolving the elevation issue.
2025-05-10 15:21:19 +09:00
Mounir IDRASSI
26924cb277 Linux: Fix typo in CMakeLists.txt after last change 2025-05-06 08:24:07 +09:00
Mounir IDRASSI
4cd6b4cd4d Linux: remove pcsclite dependency from .deb/.rpm packages since it is detected/loaded dynamically at runtime. 2025-05-06 07:26:40 +09:00
Mounir IDRASSI
bbc9fbf175 Increment version to 1.26.21 2025-05-04 03:43:45 +09:00
Mounir IDRASSI
0c5dccd6f9 Linux: Fix self-test by making the code supports key length in a generic way
This change allows to support SM4 self-test which uses a 128-bit key.
2025-05-04 03:15:16 +09:00
Mounir IDRASSI
4a371f807e Linux: Fix build issues caused by changes after SM4 addition 2025-05-04 02:45:09 +09:00
Mounir IDRASSI
7924f06e39 Initial support of SM4 cipher for normal volumes 2025-05-04 02:27:05 +09:00
Steven Lee
43ea5108e5 modify unix default mounting point prefix (use /run/media/veracrypt t… (#1524)
* modify unix default mounting point prefix (use /run/media/veracrypt to replace /mnt/veracrypt).

* bugfix

* add trailling semicolon

* add ifdef TC_LINUX
2025-04-30 14:44:26 +09:00
Mounir IDRASSI
b85e7ef602 Windows: Update libzip to version 1.11.3 2025-04-29 12:24:08 +09:00
Mounir IDRASSI
97e01098d4 Documentation: various fixes. Add Russian CHM file. 2025-04-29 11:45:12 +09:00
Mounir IDRASSI
d19c89d602 Windows: modify build batch files to use tar instead of 7zip and to support new layout of localized documentation 2025-04-27 23:43:03 +09:00
Mounir IDRASSI
07b53541e0 Windows: reorganize localized documentation, each in a dedicated folder. Adapt installers and documentation URL logic.
Now we have 3 folders under html directory:en, ru, zh-cn. Similar separation exist in online version:
https://veracrypt.fr/en
https://veracrypt.fr/ru
https://veracrypt.fr/zh-cn
2025-04-27 23:33:08 +09:00
Mounir IDRASSI
7c13d21d96 Windows: Update code signing certificate after renewal of expired one 2025-04-27 22:11:16 +09:00
pingwcy
dc12fb746f Fix the whirlpool for big-endian platform (#1529) 2025-04-21 13:55:49 +02:00
Bernard Ladenthin
0478be3626 Add alignment constants for derived key and KEY_INFO buffers to ensure SIMD compatibility. (#1526) 2025-04-21 11:26:34 +02:00
Bernard Ladenthin
5eb358ca18 Refactor: Use symbolic constants for volume header magic numbers (#1525)
Replaced hardcoded 0x56455241 ('VERA') with TC_HEADER_MAGIC for better readability and maintainability.
Also replaced 0x5645524142455854 with TC_BOOT_DRIVE_FILTER_EXTENSION_MAGIC and added 'ULL' suffix for 64-bit safety.
2025-04-21 11:24:02 +02:00
Jertzukka
004fdc2a45 Linux/FreeBSD: Improvements on installation scripts (#1514)
This patch moves away from gnome-terminal -e options which is deprecated
and subject to possibly be removed in the future. The -- option is nearly
equivalent in behaviour. Also ensures that uninstallation script has correct
privileges, adds window title to xmessage and ensures correct files are
used during installation.
2025-03-24 13:16:08 +01:00
Mounir IDRASSI
56301ea64b Linux/macOS: Fix failure to use Hungarian language cause by issue in XML parser.
The method GetNodes implementation didn't parse multiple attributes correctly and it failed with Hungarian XML because of the presence of '>' character in an attribute value.

Issue reported in https://github.com/veracrypt/VeraCrypt/pull/1516
2025-03-24 07:55:03 +01:00
Mounir IDRASSI
fc7037b670 Linux/macOS: use absolute path of 'true' command when checking if sudo session is active. 2025-02-19 10:29:27 +01:00
白庭
33d1de0d31 Fix SetupDLL and ExpandVolume Error (#1495)
* Fix SetupDLL [ReleaseCustomEFI] Building Error

* Fix Lib Problem
2025-02-15 11:59:43 +01:00
Mounir IDRASSI
974a3909ec Windows: remove dependency towards Mount/Format when building setup to fix Win32 build issue (#1487)
MainCom_i.c and FormatCom_i.c are needed only for mount/format type libraries GUIDs. Since they don't change, we just define them directly.
2025-02-08 12:00:05 +01:00
Mounir IDRASSI
a2f11e1102 Windows: Fix link error in 32-bit build by removing crypto.lib reference and implementing sha512 using BCrypt API. 2025-02-08 01:17:55 +01:00
Mounir IDRASSI
42b716f847 Rename "Dismount All" to "Unmount All" in UI. Use ALT+u as new accelerator key instead of ALT+s 2025-02-05 21:30:33 +01:00
Mounir IDRASSI
c3d7c9e45a Windows: Update version to 1.26.20 in MSI project and packaging bat files. 2025-02-04 13:25:10 +01:00
Mounir IDRASSI
c9387caa03 Update Release Notes. Update Windows signed drivers. Update MBR bootloader. 2025-02-04 01:20:08 +01:00
Mounir IDRASSI
2180020cee Windows driver: Fix regression that always allowed defragmentation and caused other side effects
Now we properly honor the AllowDefrag configuration.

This regression introduced other issues because, in order to allow defragmentation, we must provide Windows with an actual physical disk number. As a result, we assign the number of the physical disk where the VeraCrypt volume resides. This, in turn, causes Windows to send IOCTLs directly to this disk instead of to VeraCrypt. If these IOCTLs return values and properties not supported by VeraCrypt, inconsistencies arise, leading to failures.
2025-02-04 00:02:08 +01:00
Mounir IDRASSI
e73ea7193e Widnows driver: use correct value for HiddenSectors field in structures to match read MBR disks 2025-02-03 23:48:51 +01:00
Mounir IDRASSI
6cd32af1c1 macOS: correct error message in FUSE-T pkg installer to remove mention of OSXFuse. 2025-02-03 18:59:15 +01:00
Mounir IDRASSI
55563ffe42 Increment version to 1.26.20. Update Release Notes. 2025-02-03 17:52:19 +01:00
Mounir IDRASSI
c69ba240c4 Complete replacement of Dismount references by Unmount in various files 2025-02-02 23:37:36 +01:00
Mounir IDRASSI
04e7d8c5ee Windows: Revert use PDH API to gather system entropy because of issues encountered by users
cf thread: https://sourceforge.net/p/veracrypt/discussion/general/thread/293d401a30

delays and sporadic crashes in some cases.
2025-02-02 13:51:33 +01:00
Helmut K. C. Tessarek
498dff9013 refactor: use the term unmount instead of dismount (#1478)
* refactor: use UNMOUNT instead of DISMOUNT in code

This change updates the term DISMOUNT in constants to UNMOUNT.
Other occurrences (e.g. variable names) are left alone for now.

* refactor(ui): use unmount instead of dismount

This change updates the GUI text and replaces dismount with unmount.

* docs: update term dismount -> unmount

* refactor(cmdline): add unmount

This change adds an argument 'unmount' for command line usage, while
trying to deprecate the old disnount argument.
The current dismount argument/flag will still work to not introduce
a breaking change.

* docs: mention that /dismount is deprecated

This change fixes the shorthand version of the argument /unmount
It also adds back the info for /dismount and that it is deprecated.
2025-01-31 23:18:26 +01:00
Xeonacid
c71fa14dc0 Enable AESNI only on x86 (#1479)
This helps building on riscv which does not have immintrin.h.
2025-01-30 09:53:19 +01:00
Mounir IDRASSI
247c98d954 Implement SHA256 acceleration on ARM64 platforms using CPU instructions 2025-01-26 16:21:13 +01:00