VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common
AgeCommit message (Collapse)AuthorFilesLines
2023-07-02Update Release Notes with latest changes.Mounir IDRASSI1-2/+2
2023-07-01Windows: Add missing header changes needed for previous commitMounir IDRASSI1-2/+2
2023-07-01Windows: Make API formatting fallback to format.com in case of elevation. ↵Mounir IDRASSI2-53/+20
remove dead code from ExternalFormatFs We also modify UacFormatNtfs/UacFormatFs to return actual error code in case of failure
2023-07-01Windows: fix compilation warningsMounir IDRASSI1-3/+3
2023-07-01Windows: Fix formatting issue during volume creation by using /Y for ↵Mounir IDRASSI3-31/+83
format.com and specifying removal parameter in FormatEx The usage of /Y parameter in format.com simplifies the logic and makes the code robust since we don't need to send \n to the format.com process. Specifying RemovableMedia parameter to FormatEx fixes its failure in Windows 10 and later to perform quick format. This is also more adequate since we are mounting the volume as removable media for the formatting process. We also add better error management in order to display adequate error message to the user in case of failure
2023-06-30Correctly detect ARM builds when listing CPU features in headersMounir IDRASSI1-2/+2
2023-06-29EMV keyfile support: Overall code improvements and bug fixesMounir IDRASSI30-1320/+3905
2023-06-28Add EMV functionality (#1080)mmauv14-355/+1952
* Add basic strcture needed for EMV implementation * Add demo EMV functionality with C code pasted in a very dirty and unsafe way. NOT FINAL * Refactor IccExtractor Structure * Fix Makefile * fix include file * move global variables from h to c * revert to memcpy * fix icc data recovery functions * Add EMV functionalities on windows * Make EMVToken structures like SecurityToken * Define constants instead of hard coded values * Token structures created with inheritance * refactor TokenKeyfile to use inherit. + polymor. * add Token.h + Token.cpp in modules in VS2010 * Add a comment at each use of SecurityToken class or objects * SecurityTokenKeyfilesDialog preparation * Implemennt GetAvailableTokens in Token class on windows * merge * up (patching for Windows) * foreach Token.cpp corrected * Display EMV keyfiles on first window in graphic interface * Add token to Windows UI * EMVToken selection on OKButton on Linux * Keyfile.cpp optimization * Move getKeyfileData in the token class * EMV::Token GetAvailableKeyfiles() base * Move getKeyfileData in the token class on unix * Remove test comments * Warnings resolved * RemoveeSecurityTokenLibraryNotInitialized exception if at least one emv token is detected * Adding new files * Remove old files and add the new version to the windows project * Change make_shared to shared_ptr constructor * IccExtractor integration working on linux * Throwing card not EMV execption * catch error when not EMV type in EMVToken::GetAvailableKeyfiles * Change types to compile on windows * list all keyfiles, security keyfiles and emv keyfiles in command line * Change type to be coherent and remove old todo comments * Remove todo comments * Change indentation and resolve a bug from previous commit * Use polymorphism for GetKeyfileData and add export option for EMVTokens on Linux * Linux : Allow to export EMV Tokens in command lines, Windows : Disable the delete button when EMV Keyfiles are selected * Remove SlotId from TokenInfo as it is already in Token * Correct errors on Linux * Disable delete option if one EMV Token is selected on Linux * Fix bug enabling delete button if nothing is selected * emv data used as reference then burnt * use of normal files in linux corrected * help updated * help updated for export functionnality * option EMV added to graphic interface but not yet working * Bug fix : Allow to use multiple EMV on windows * EMV Option added to UserPreferences * EMV Option working for Linux * EMV option added to Windows (not working yet) * [NOT TESTED] EMV option for Windows * Working EMV option on Windows * EMV Option for data extraction working for volume creation * EMV Option for data extraction working for Mount * EMV Option for data extraction working for mounting favorites volumes * EMV Option for extraction working for Changing volume password, Set Derivation Key Algorithm and Add or remove keyfile from volume * Windows : re-checking EMV Option when getting data * Removing error catches in the IccDataExtractor classe (It only throws error now). Changing GetPan signature to resemble the other functions signatures more * Changing EMV errors - Only throwing ICCExtractionException from outside of the ICC module. - Catching all TLVExceptions and PCSCExceptions to throw the right ICCExtractionException - Deleting APDU exceptions. * First version of the documentation * Adding function pointers for winscard library (but it crashes VeraCrypt) * Debugging function pointers * The import of the library on windows work as expected now * Reverting EMVToken.cpp changes used to test to library import * Searching for the System32 path instead of hard codding it * Fixing the bug were VeraCrypt crashes if there is no readers when "add Token files" is clicked * Winscard library not initialized in object constructor anymore to delay it after EMVOption check * Remove winscard lib from windows dependencies * Properly displaying errors * Adding a dot in Language.xml * Catching TLVException * Removing unused code * Remove unusefull comments * Trying to fix 0x1f error * Update IccDataExtractor.cpp * Delete History.xml * Fix get data without get pan * Cleanup code * changes for linux compilation but linking not working * error handling for linux * erasing emv data * Burn PAN * Burn PAN from memory * Uncomment selfcheck before merging master * burn corrected * EMV errors handling for Linux * EMV working for Linux CLI * Doc : Winscard Linux package and VeraCrypt versions --------- Co-authored-by: doriandu45 <d45.poubelle@gmail.com> Co-authored-by: red4game <redemgaiming@gmail.com> Co-authored-by: Brice.Namy <brice.namy@insa-rennes.fr> Co-authored-by: vocthor <pieceo108@gmail.com> Co-authored-by: vocthor <67202139+vocthor@users.noreply.github.com> Co-authored-by: Andrei COCAN <andrei.cocan@insa-rennes.fr> Co-authored-by: AndreiCocan <95496161+AndreiCocan@users.noreply.github.com> Co-authored-by: francoisLEROUX <francois3443@gmail.com>
2023-06-28Increment version to 1.26.3. Update Release NotesMounir IDRASSI1-2/+2
2023-06-28Windows: Add comboxbox to Format wizard to choose ↵Mounir IDRASSI2-0/+8
QuickFormat/FastCreate/FullFormat This required changes to internal logic and addition of new UI strings
2023-06-28Windows: Better handling of quick format for file containerMounir IDRASSI4-22/+104
We write a zeroed sector every 128 MiB, leaving other sectors untouched This helps users visualize the progress of actual file creation while forcing Windows to allocate the disk space of each 128 MiB chunk immediately, otherwise, Windows would delay the allocation until we write the backup header at the end of the volume which would make the user think that the format process has stalled after progress bar reaches 100%.
2023-06-25Windows: 100% localization of Expander UI stringsMounir IDRASSI1-0/+31
2023-06-25Windows: Better language localization support for Expander.Mounir IDRASSI1-0/+2
More work is needed to localize remaining string resources
2023-06-24Windows: Add 7zWindows.h file to Lzma project filesMounir IDRASSI4-0/+8
2023-06-23Dll125 lzma (#1120)DLL12524-1149/+2124
* Update LZMA to latest * Add missing file
2023-06-23Windows: if /fastCreateFile set, request SE_MANAGE_VOLUME_NAME privileges ↵Mounir IDRASSI2-6/+24
(credits: @xnoreq) Display a warning if request failed and allow to continue without fast creation
2023-06-23Windows: Make SetPrivilege return error if AdjustTokenPrivileges cannot ↵Mounir IDRASSI1-2/+5
adjust privileges
2023-06-20Windows: Allow selecting size unit (KB/MB/GB) for generated keyfilesMounir IDRASSI4-27/+68
This change also makes it possible to generate keyfiles larger than 1 MiB although only the first 1 MiB will be taken into account by VeraCrypt. Update strings in XML files
2023-06-06Update copyright on various filesMounir IDRASSI1-3/+3
2023-06-04Increment version to 1.26.2. Update Release NotesMounir IDRASSI1-4/+4
2023-06-02Windows: Add dropdown menu to Mount button to allow mounting without cacheMounir IDRASSI3-1/+3
2023-06-01Fix issues launching fsck via terminal on Linux (#1086)Jertzukka1-0/+1
Currently on a system without xterm or konsole (like fresh Ubuntu install) the fsck check will not launch. Added gnome-terminal as an alternative and fixed an issue where konsole will always error out as --title and --caption are no longer valid arguments. Previously the error message was simply "xterm not found", so new LangString LINUX_EX2MSG_TERMINALNOTFOUND was added to let the user knows which programs they need to get the feature working.
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-26Windows: Add missing update of libzip zip_err_str.c and fix libzip related ↵Mounir IDRASSI4-80/+147
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-19update zlib to latest version 1.2.13 (#986)Wendigo18-228/+262
2023-05-18Add a new LangString 'LINUX_VOL_MOUNTED' to show when volume mounted. Fixes ↵Jertzukka1-0/+1
(#1029) the issue of 'LINUX_VOL_DISMOUNTED' being shown even when not dismounting.
2022-12-11Revert "New sys enc wizard (#957)"Mounir IDRASSI4-133/+30
This reverts commit c0ff7a7c521b1d658316d9a177383ab0c403007a.
2022-08-25New sys enc wizard (#957)SysEncWizardPR957Felix Reichmann4-30/+133
* 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-03-31Update zlib to version 1.2.12Mounir IDRASSI18-989/+10767
2022-03-26Windows: Add various checks to address Coverity reported issues.Mounir IDRASSI3-19/+48
2022-03-26Windows: check result of WriteFile and don't block if it is failing (Coverity)Mounir IDRASSI1-4/+10
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 IDRASSI1-1/+1
2022-03-21Increment version to 1.26 and update windows driver and MBR bootloader filesMounir IDRASSI1-4/+4
2022-03-21Windows: Block upgrade of VeraCrypt is the system is encrypted using ↵Mounir IDRASSI3-0/+30
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 IDRASSI13-316/+313
algorithms RIPEMD-160 and GOST89.
2022-02-19Increment version to 1.25.9 and update Release Notes.Mounir IDRASSI1-2/+2
2022-02-16Update Release Notes and release dateMounir IDRASSI1-1/+1
2022-02-11Update copyrights following integration of LZMA SDKMounir IDRASSI1-1/+2
2022-02-11Update Release Notes and set release date to February 10th.Mounir IDRASSI1-1/+1
2022-02-10Windows Driver: Don't cache the password if outer volume mounting succeeds ↵Mounir IDRASSI2-4/+12
but hidden volume mounting fails
2022-02-10Windows: Reduce the size of installers by almost 50% by using LZMA ↵Mounir IDRASSI29-0/+13219
compression instead of DEFLATE
2022-02-10Windows: Make Travel Disk contains 32-bit and arm64 binaries when VeraCrypt ↵Mounir IDRASSI1-934/+950
installed using MSI
2022-02-06Windows: Add registry setting to disable erasing encryption keys on Windows ↵Mounir IDRASSI1-0/+2
shutdown/reboot. This helps solve BSOD during shutdown/reboot on some machines. Under "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\veracrypt", create a REG_DWORD value named "VeraCryptEraseKeysShutdown" and set its value to 0.
2022-02-05Increment version to 1.25.8Mounir IDRASSI1-3/+3
2022-02-02Windows: Fix failure to verify driver file signature since it is signed by ↵Mounir IDRASSI1-1/+12
Microsoft not us. This caused a failure when creating Traveler Disk