summaryrefslogtreecommitdiffstats
path: root/Utilities/cmlibrhash
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'librhash-left-shift-unsigned'Brad King2016-11-291-2/+2
|\ | | | | | | | | 9e07ffa4 librhash: Avoid signed left-shift overflow in sha256
| * librhash: Avoid signed left-shift overflow in sha256Brad King2016-11-291-2/+2
| | | | | | | | | | Fix `rhash_sha256_final` to use unsigned integers for left shifting to avoid the possibility of undefined overflow behavior.
* | librhash: Activate SHA-3 implementationBrad King2016-11-103-5/+15
| |
* | Merge branch 'upstream-librhash' into add-SHA-3Brad King2016-11-103-1/+411
|/ | | | | * upstream-librhash: librhash 2016-11-06 (de79828d)
* librhash: Port to KWIML for ABI and integer type informationBrad King2016-11-102-40/+28
|
* librhash: Avoid signed left-shift overflowBrad King2016-11-101-2/+2
| | | | | Fix `rhash_md5_final` to use unsigned integers for left shifting to avoid the possibility of undefined overflow behavior.
* librhash: Implement bswap_32 as a function even in strict C90 modeBrad King2016-11-101-5/+2
| | | | | We cannot fall back to the macro implementation because some call sites may call it with an argument like `*ptr++` that has side effects.
* librhash: Implement bswap_64 even in strict C90 modeBrad King2016-11-101-4/+2
|
* librhash: Use __builtin_bswap{32,64} on ClangBrad King2016-11-101-0/+8
|
* librhash: Install COPYING file with CMake documentationBrad King2016-11-101-0/+2
| | | | | When we install using the bundled librhash source, notify users of its license terms.
* librhash: Disable warnings to avoid changing 3rd party codeBrad King2016-11-102-0/+12
| | | | | Add '-w' or equivalent flag on compilers supporting it. Tell MSVC to use its lowest warning level inside librhash sources.
* librhash: Build the library within CMakeBrad King2016-11-102-0/+31
| | | | | | | | Update `ustd.h` to include KWSys Large File Support configuration so that consistent stream libraries are used (on AIX with XL). Add a `cm_rhash.h` header to include the CMake-provided copy of the `rhash.h` header from CMake sources.
* librhash: Remove source fragments not needed for CMakeBrad King2016-11-105-125/+47
| | | | | | | | | We only need a subset of the hash algorithms supported by librhash. Add preprocessor conditionals to remove source fragments that we do not need. Write an alternative algorithm enumeration that matches the indexing on our reduced array. Also remove a few fragments outright.
* Merge branch 'upstream-librhash' into import-librhashBrad King2016-11-0321-0/+3238
* upstream-librhash: librhash 2016-11-01 (d839a1a8)