VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2023-05-28Pkcs5.c: Fix typos where SHA256 is mentionned instead of Blake2sMounir IDRASSI1-5/+5
This didn't cause any issue because SHA256_DIGESTSIZE is equal to BLAKE2S_DIGESTSIZE
2023-05-27Prevent failing fs options being shown in --text --create (#1078)Jertzukka1-15/+23
Removes the options exFAT and Btrfs being shown when creating a volume in text mode when the system does not support them and will end up erroring out at the end. Hide Btrfs option when the volume is too small, as we will anyways fail right after. Hardcoded numbering changed to dynamic as the available options are not necessarily consecutive.
2023-05-27Linux/macOS: Make RNG implementation match documentation and the Windows ↵Mounir IDRASSI1-8/+15
implementation
2023-05-27Linux/macOS: explicitely initialize hash algo before hashing random poolMounir IDRASSI1-2/+3
The lack of explicit hash initialization was causing issue with Blake2s because it doesn't allow further processing once a digest value was returned. Other hash algorithms don't have this restriction. Not we explicitely initialize all hash algorithms which is the correct way to do things.
2023-05-26Windows: Add missing Blake2s source files to VS 2019 crypto projectMounir IDRASSI1-0/+3
2023-05-26Windows: Add missing update of libzip zip_err_str.c and fix libzip related ↵Mounir IDRASSI5-86/+153
project configuration
2023-05-25Update Libzip to latest 1.9.2 (#1071)DLL125144-4059/+8304
* Libzip 1.9.2 Updated Libzip to latest version 1.9.2 and changed version number in the config.h from 1.7.3 to 1.9.2. Not sure if anything else needs to be tweaked :) * Modified Libzip to work with Visual studio * Update README.md Update libzip copyright. * Added the missing files. I've added the missing files zipconf.h and config.h, I've missed those sorry for that!
2023-05-22Linux: Fix printing error when checking freespace during volume creationMounir IDRASSI1-1/+6
No parent directory specified in the path, we assume current directory We first check if parent directory exists before checking its free space using wxgetDiskSpace Based on idea proposed by @bogdro in PR#1025
2023-05-21Linux/macOS: Better handling of wrong PIM value in text mode (enhances PR#1026)Mounir IDRASSI1-1/+4
2023-05-21Keep PIM secret and re-ask when user entered a wrong value (#1026)Bogdan Drozdowski1-1/+5
Co-authored-by: Bogdan Drozdowski <>
2023-05-19Added line breaks between new copyright holders (#963)Marius Kjærstad1-2/+2
2023-05-19update zlib to latest version 1.2.13 (#986)Wendigo18-228/+262
2023-05-19wxWidget assert failure bug (#999)Es6-107/+113
* Removal of any of the any of `wxALIGN_RIGHT`/`wxALIGN_CENTRE_HORIZONTAL`/`wxALIGN_BOTTOM`/`wxALIGN_CENTRE_VERTICAL` when used in conjunction with `wxEXPAND` wxWidget has an "assert" that gets triggered anytime `wxEXPAND` gets used with an alignment property (useless override). This leads to a popup backtrace everytime a non-compliant widget is opened. * Removal of missed `wxALIGN_RIGHT`/`wxALIGN_CENTRE_HORIZONTAL`/`wxALIGN_BOTTOM`/`wxALIGN_CENTRE_VERTICAL` when used in conjunction with `wxEXPAND` * Removed property 'label' for wxMenuBar as no longer used (wxFormBuilder) * Removed redundant 'wxALIGN_RIGHT' for the "OK" button in the preference panel (there is a spacer already in-place that pushes the buttons to the right) * Removed redundant 'wxALIGN_RIGHT' for items in the wizard panel's (`WizardFrameBase`) button bar and added width spacing for the 2 spacers between the buttons to make up for the change. * Changed constructor signature for the `WizardPage` and all subclasses The addition of the wxString 'name' arg brings it inline with the new wxFromBuilder v3.10.1 output so that editing+generating the forms from it won't brake the build now. * Removed remaining redundant 'wxALIGN_*' that were paired with 'wxEXPAND'. * Added missing default flags to wxFileName::Normalize(..) method The old empty initialization which was fine up to v2.8.12 of wxWidget gives off a compile warning. Since the default `wxPATH_NORM_ALL` is now depreciated (v3.x) the equivalent individual flags must be explicitly given. * Changed spaces to tabs to bring last commit inline with the rest of the src code
2023-05-19OpenBSD vnconfig no longer needs -c option (#1002)ZhanYF1-2/+0
Co-authored-by: Your Name <you@example.com>
2023-05-18Fix compiler warnings (#1030)David1-2/+2
Fixing the following compiler warnings: FuseService.cpp: In function ‘int VeraCrypt::fuse_service_read(const char*, char*, size_t, off_t, fuse_file_info*)’: FuseService.cpp:233:12: warning: catching polymorphic type ‘struct VeraCrypt::MissingVolumeData’ by value [-Wcatch-value=] 233 | catch (MissingVolumeData) | ^~~~~~~~~~~~~~~~~ FuseService.cpp: In static member function ‘static int VeraCrypt::FuseService::ExceptionToErrorCode()’: FuseService.cpp:362:15: warning: catching polymorphic type ‘class std::bad_alloc’ by value [-Wcatch-value=] 362 | catch (std::bad_alloc) | ^~~~~~~~~ Apart from warnings, the current code creates unnecessary copies of the exception object in debug mode. (But not in -O3)
2023-05-18Fix mount.veracrypt (#1064)Jertzukka1-2/+2
Reverses order of --non-interactive and --text to actually make it work, also fix --pim working.
2023-05-18Add a new LangString 'LINUX_VOL_MOUNTED' to show when volume mounted. Fixes ↵Jertzukka2-1/+2
(#1029) the issue of 'LINUX_VOL_DISMOUNTED' being shown even when not dismounting.
2023-05-18Linux/macOS: Suppress asserts displayed by wxWidgets 3.1.6+ for sizer flags ↵Mounir IDRASSI1-0/+1
until we fix all sizer flags in our UI.
2023-05-18Linux: Fix .deb package compatibility with Ubuntu 23.04Mounir IDRASSI1-1/+5
2022-12-11Windows MSI: fix failure to create MSI because of missing html files during ↵Mounir IDRASSI1-1/+1
packaging
2022-12-11Windows MSI: Add reference to newly added documentation files. Remove ↵Mounir IDRASSI1-4/+112
reference to RIPEMD-160 html file.
2022-12-11Documentation: remove usage of CSS collapsible to avoid breaking CHM ↵Mounir IDRASSI1-2/+6
generation. Add new entries to CHM. Remove example script file since its content is described inline in the documentation We need to generate CHM from the same HTML files as the documentation and so we are limited by CHM compatibility
2022-12-11Revert "New sys enc wizard (#957)"Mounir IDRASSI12-1001327/+279
This reverts commit c0ff7a7c521b1d658316d9a177383ab0c403007a.
2022-08-25New sys enc wizard (#957)SysEncWizardPR957Felix Reichmann12-279/+1001327
* New VeraCrypt interface (for system encryption) with improved usability * System Encryption: translate password to US keyboard layout + improved new interface * Windows: Fix build error following merge * Windows: Remove unused variable * Windows: Add missing string in Language.xml * Windows: fix buffer overrun caused by wrong use of wmemset * Do not delete password file Since the file is only available in \Release\Setup Files\ it would be fully deleted after running this script the first time. * Correct return code Originally the function would have always returned the return-code 1 resulting that the user is not able to change the location for the rescue zip. * Added hint for sysenc Added a hint why the field for repeating the password is initially greyed out within the system encryption. * Corrected spelling mistake Corrected spelling mistake * Removed not working copy job The file to be copied was stored at the source location. Therefore the copyjob will not work. Instead the file is already in the target folder. * Removed RIPEMD-160 from Product64.wxs See commit from 21.03.2022 * Added german translation for new interface * Fixed PIM bug * Corrected translation file based on the guidelines within the pull request * Fixing merge conflicts * Fixed Compiling issues. Reverted keyboard translation * Removed artifacts of password translation * Corrected language.xml * Fixed order within german language file * Corrected positions Co-authored-by: Bruna2803 <bruna.radeljak@hotmail.com> Co-authored-by: felixreichmann <30237956+felixreichmann@users.noreply.github.com> Co-authored-by: Mounir IDRASSI <mounir.idrassi@idrix.fr>
2022-08-25Windows: use newer MEMORYSTATUSEX structure in call to GlobalMemoryStatusExMounir IDRASSI1-3/+3
2022-08-25Minor bugfixes (#950)Wendigo2-6/+12
* Update Dlgcode.c minor bugfixes * GlobalMemoryStatus x64 bugfix GlobalMemoryStatus deprecated in x64
2022-08-21Fix incorrect text color in dark mode (#920)Kenneth Chew2-3/+3
2022-08-21Fixed a typo error (#929)Matteo Baccan1-1/+1
Hi I have fixed a little typo error: a double semicolon at the end of one line ciao matteo
2022-08-16Documentation overwork (#953)Felix Reichmann1-47/+3
Github PR: https://github.com/veracrypt/VeraCrypt/pull/953 * Create CompilingGuidelinerh * Initial Upload Windows Compiling Guide * Removed RIPEMD-160 from Product64.wxs. See commit from 21.03.2022 * Completed Win compiling guideline * Added link to detailed compiling guide * Added link to detailed compiling guide * Restructured docu main page * Added sourceforge link * Added compiling guide for Linux * References to detailed instructions * Revert "Removed RIPEMD-160 from Product64.wxs. See commit from 21.03.2022" This reverts commit 024ae2a4659a6d9e65673531338e10bd10b8a3a0. * Correction of a div box
2022-03-31Update zlib to version 1.2.12Mounir IDRASSI18-989/+10767
2022-03-26Windows: Add various checks to address Coverity reported issues.Mounir IDRASSI11-28/+105
2022-03-26Windows: check result of WriteFile and don't block if it is failing (Coverity)Mounir IDRASSI1-4/+10
2022-03-26Remove dead code from chacha_ECRYPT_encrypt_bytes (Coverity)Mounir IDRASSI2-15/+16
2022-03-26Windows: Fix wrong parameter to CloseHandle function in case of failure of ↵Mounir IDRASSI1-1/+1
CreateEvent (Coverity)
2022-03-22Update release notes for 1.26.0 and set its date to March 21st 2022Mounir IDRASSI6-9/+9
2022-03-21Windows: Add latest 1.26 EFI bootloader files that are signed by Microsoft ↵Mounir IDRASSI12-0/+0
that come with the following modifications: - Fix bug in PasswordTimeout value handling that caused it to be limited to 255 seconds. - Rescue Disk: enhance "Boot Original Windows Loader" by using embedded backup of original Windows loader if it is missing from disk - Addition of Blake2s and removal of RIPEMD160 & GOST89
2022-03-21Increment version to 1.26 and update windows driver and MBR bootloader filesMounir IDRASSI41-47/+47
2022-03-21Add missing Blake2s source filesMounir IDRASSI10-0/+1474
2022-03-21Windows: Display message to recreate Rescue Disk when upgrading from version ↵Mounir IDRASSI1-1/+1
1.25 or earlier because of the changes in the supported algorithms
2022-03-21Windows: Block upgrade of VeraCrypt is the system is encrypted using ↵Mounir IDRASSI5-0/+42
RIPEMD-160 or GOST89 since they are not supported anymore.
2022-03-21Windows: use "HMAC-BLAKE2s-256" instead of "HMAC-BLAKE2s" for BLAKE2s PRF nameMounir IDRASSI1-1/+1
2022-03-08Implement support of Blake2s-256 hash algorithm and remove deprecated ↵Mounir IDRASSI50-1944/+482
algorithms RIPEMD-160 and GOST89.
2022-02-19Increment version to 1.25.9 and update Release Notes.Mounir IDRASSI46-38/+38
2022-02-19Linux/MacOSX: Fix hidden volume settings not correctly displayed when ↵Mounir IDRASSI3-4/+7
enabling hidden volume protection in mount options window
2022-02-18Linux: Fix code dump when built with -D_GLIBCXX_ASSERTIONS caused by an ↵Mounir IDRASSI1-1/+0
assert in libstdc++. The variable has enough capacity so pointer &buffer[0] is valid but since clear method was called, we are not supposed to access element at index 0. Related to Github issue #896
2022-02-16Windows: Fix wrong Debug reference in VS2019 solution fileMounir IDRASSI1-8/+8
2022-02-16Update Release Notes and release dateMounir IDRASSI1-1/+1
2022-02-16Increment version to 1.25.8.2 and update signed Windows driversMounir IDRASSI17-19/+19
2022-02-13Linux/FreeBSD: Enable building without AESNI support by setting environment ↵Mounir IDRASSI4-7/+32
variable DISABLE_AESNI to 1 during build or passing NOAESNI=1 to make command This comes following Github issue #892 and which should be solved thanks to this.
2022-02-11Windows: remove debugging left over call to MessageBoxMounir IDRASSI1-1/+0