VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Crypto/cpu.c
AgeCommit message (Expand)AuthorFilesLines
2017-07-04Windows: correctly handle SEH exceptions during self-tests in order to disabl...Mounir IDRASSI1-4/+22
2017-07-01For code logic clarity, add check for xgetbv support in CPU before using it.Mounir IDRASSI1-1/+1
2017-06-27Enable AVX assembly instructions only when the OS implements AVX supportMounir IDRASSI1-2/+19
2017-06-21Crypto: Add optimized Camellia assembly implementation for x86_64 based on wo...Mounir IDRASSI1-1/+3
2016-10-17Implement detection of new CPU features: AVX2 and BMI2Mounir IDRASSI1-1/+3
2016-08-17Linux: fix various compilation issues under Linux.Mounir IDRASSI1-0/+4
2016-08-16Windows: Fix various issues detected by static analysis.Mounir IDRASSI1-1/+1
2016-08-15Windows EFI Bootloader: modifications to prepare EFI system encryption suppor...Alex1-7/+13
2016-08-08Linux: Enable gcc AES-NI built-in functions and adapt Hyper-V AES detection c...Mounir IDRASSI1-13/+51
2016-07-29Crypto: Use Hyper-V AES-NI detection workaround when displaying AES hardware ...Mounir IDRASSI1-34/+65
2016-07-24Crypto: Workaround for AES-NI issue under Hyper-V on Windows Server 2008 R2 w...Mounir IDRASSI1-3/+57
2016-06-17Update intrinsic support and cpu detection.Mounir IDRASSI1-4/+4
2016-05-10Remove trailing whitespaceDavid Foerster1-1/+1
2016-05-10Normalize all line terminatorsDavid Foerster1-231/+231
2016-05-01Reset bogus executable permissionsDavid Foerster1-0/+0
2016-02-22Windows: correct static inline declaration to solve Windows compilation errorMounir IDRASSI1-2/+2
2016-02-21Crypto: update Whirlpool implementation using latest code from Crypto++.Mounir IDRASSI1-25/+58
2015-12-31Cryptography: Optimize Whirlpool implementation by using public domain assemb...Mounir IDRASSI1-0/+198
tion and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The names of the authors may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #define _ZIP_COMPILING_DEPRECATED #include "zipint.h" #include <limits.h> ZIP_EXTERN int zip_get_num_files(zip_t *za) { if (za == NULL) return -1; if (za->nentry > INT_MAX) { zip_error_set(&za->error, ZIP_ER_OPNOTSUPP, 0); return -1; } return (int)za->nentry; }