aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/hash/sha1
Commit message (Collapse)AuthorAgeFilesLines
* Remove ULL suffixesJack Lloyd2020-12-011-1/+1
| | | | Not required anymore
* Make scan_name.h, cpuid.h and http_util.h internalJack Lloyd2020-11-281-1/+1
|
* Merge GH #2456 Remove deprecated headers, make many headers internalJack Lloyd2020-11-065-11/+9
|\
| * Remove deprecated headers, make more headers internalJack Lloyd2020-11-065-11/+9
| | | | | | | | | | | | | | | | | | Now modules default to internal headers instead of defaulting to public; making a new public API should be a visible and intentional choice. Brings the public header count from over 300 to around 150. Also removes the deprecated tls_blocking interface
* | Remove compiler version checks for old compilersJack Lloyd2020-11-062-5/+5
|/ | | | Also, add MSVC for ghash_cpu - somehow this got lost!
* Deprecate many publically available headersJack Lloyd2019-09-062-0/+3
|
* Make ssse3/sse2 dependencies explicit rather than implicitJack Lloyd2019-09-041-0/+1
| | | | Previously --disable-sse2/--disable-ssse3 would not work as expected
* Make the ISA list a listJack Lloyd2019-04-173-3/+11
|
* Avoid including rotate.h in bswap.hJack Lloyd2018-12-212-0/+2
| | | | | | | It was only needed for one case which is easily hardcoded. Include rotate.h in all the source files that actually use rotr/rotl but implicitly picked it up via loadstor.h -> bswap.h -> rotate.h include chain.
* Fix some warnings in ARM specific codeJack Lloyd2018-10-011-12/+12
|
* ABI for Aarch64 cryptoJack Lloyd2018-01-121-4/+1
|
* Add missing ISA annotationsJack Lloyd2018-01-041-1/+1
| | | | Lack of these broke single file amalgamation (GH #1386)
* Rename SSE4.x names to avoid underscoresJack Lloyd2017-12-111-1/+1
| | | | | | This breaks how we determine the ISA flags for amalgamation files. The code for doing that is kind of a hack but I don't want to mess with it right now, easier to just rename the ISA internally.
* Rename the SSE4 ISA extensionsJack Lloyd2017-12-111-1/+1
| | | | Simplifies macro generation
* Fix a typo in sha1_sse2.cppFelix Yan2017-12-031-1/+1
|
* Convert http:// links to https:// where possibleJack Lloyd2017-10-241-1/+1
|
* Add compile-time rotation functionsJack Lloyd2017-10-122-24/+24
| | | | | | | | | | | | | | | | | The problem with asm rol/ror is the compiler can't schedule effectively. But we only need asm in the case when the rotation is variable, so distinguish the two cases. If a compile time constant, then static_assert that the rotation is in the correct range and do the straightforward expression knowing the compiler will probably do the right thing. Otherwise do a tricky expression that both GCC and Clang happen to have recognize. Avoid the reduction case; instead require that the rotation be in range (this reverts 2b37c13dcf). Remove the asm rotations (making this branch illnamed), because now both Clang and GCC will create a roll without any extra help. Remove the reduction/mask by the word size for the variable case. The compiler can't optimize that it out well, but it's easy to ensure it is valid in the callers, especially now that the variable input cases are easy to grep for.
* Change header guard format to BOTAN_FOO_H_Jack Lloyd2017-09-201-2/+2
| | | | | | ISO C++ reserves names with double underscores in them Closes #512
* Add API stability annotations.Jack Lloyd2017-09-191-1/+1
| | | | | Defined in build.h, all equal to BOTAN_DLL so ties into existing system for exporting symbols.
* Use native compiler versioning of MSVCSimon Warta2017-07-311-1/+1
| | | | | | | | | | | | | | | | While using marketing names like 2013, 2015 etc. is more convenient at first sight, it requires keeping a table about all supported compiler versions, as there is no formular to calculate between the representations. Keeping a list of compilers leads to the following issue: if one version of Botan is released in 2017, requiring MSVS 2015 for one module, this source can be compiled using MSVS 2015 and 2017 but not a future version like 2019. Also preview/development versions of MSVC that may use an intermediate version number cannot be handled with the marketing name table because they may be unknown to the general public.
* Maintainer mode fixes: old style casts, missing override, unused functionsJack Lloyd2017-06-081-2/+2
|
* fix doxygen build: hide method definitions with ifdefs where theZoltan Gyarmati2017-06-082-0/+4
| | | | | | | function declaration is already hidden, fix some param names in doxygen comments, fixes #1067 This work was sponsored by Ribose Inc (@riboseinc).
* Merge GH #1056 Add HashFunction::copy_state and port to OpenSSL 1.1.0Jack Lloyd2017-05-222-0/+6
|\
| * Add HashFunction::copy_stateJack Lloyd2017-05-222-0/+6
| | | | | | | | See GH #1037
* | Disable ARMv8 SHA extensions on 32-bitJack Lloyd2017-05-221-1/+1
| | | | | | | | | | | | | | Works everywhere but Apple Clang. Could handle this with a hack to configure but running ARMv8 in 32-bit mode is rare and suboptimal, and it would be better to deal with this using compile-time feature detection.
* | Set minimum compiler versions for ARMv8 SHA intrinsicsJack Lloyd2017-05-201-0/+5
| |
* | Small cleanups for ARM SHA codeJack Lloyd2017-05-202-8/+12
| | | | | | | | | | | | | | Fix for new define syntax, remove old style casts. Add some randomly generated longer SHA-256 vectors, previously had precisely zero multiblock tests.
* | Add ARMv8 SHA-1 supportJack Lloyd2017-05-204-0/+222
|/ | | | | | Based on patch from Jeffrey Walton in GH #840 Only tested in qemu so far.
* Set minimum compiler versions for SHA intrinsicsJack Lloyd2017-05-191-0/+6
|
* Add support for Intel SHA-1/SHA-2 instructionsJack Lloyd2017-05-194-0/+233
| | | | Based on GH #807 and #808
* Remove "Dirty hack" for multiple defines in lex_me_harder()Simon Warta2017-04-022-2/+6
|
* Convert to using standard uintN_t integer typesJack Lloyd2016-12-183-20/+20
| | | | | | Renames a couple of functions for somewhat better name consistency, eg make_u32bit becomes make_uint32. The old typedefs remain for now since probably lots of application code uses them.
* Move ISA optimized versions under the main algo dirJack Lloyd2016-11-032-0/+338
| | | | | | | | Previously it made sense for them to be in distinct dirs because they were standalone. However with #580 that is no longer the case, so move them to subdirs. Configure knows that anything underneath a directory has a dependency on the parent dir, so update info.txt files accordingly to remove explicit dependencies where set.
* Merge optimized implementations into base classJack Lloyd2016-09-152-17/+27
| | | | | | | | | | Various algorithms had an optimized implementation (for SSE2, AVX2, etc) which was offered alongside the 'base' implementation. This is admittedly very useful for testing, but it breaks user expectations in bad ways. See GH #477 for background. Now encrypting with `AES_128` (say) just runs whatever implementation is best on the current processor/build.
* cppcheck fixes: Class 'X' has a constructor with 1 argument that is not ↵Daniel Neus2016-03-051-1/+1
| | | | explicit.
* Mass-prefix member vars with m_René Korthaus2016-01-082-71/+71
|
* Internal header cleanupsJack Lloyd2015-09-191-1/+0
| | | | Only user-visible change is the removal of get_byte.h
* Fix static lib registration for block, hash, mac, stream, kdfJack Lloyd2015-09-101-2/+0
| | | | | | | | | | | The support problems from having static libraries not work in the obvious way will be endless trouble. Instead have each set of registrations tag along in a source file for the basic type, at the cost of some extra ifdefs. On shared libs this is harmless - everything is going into the shared object anyway. With static libs, this means pulling in a single block cipher pulls in the text of all the them. But that's still strictly better than the amalgamation (which is really pulling in everything), and it works (unlike status quo).
* hash: Add missing overridesDaniel Seither2015-07-301-6/+6
|
* lib/hash: Convert &vec[0] to vec.data()Simon Warta2015-06-271-1/+1
|
* Use Algo_Registry also for hashes.lloyd2015-01-281-2/+3
|
* Ensure all files have copyright and license info.lloyd2015-01-102-2/+2
| | | | | Update license header line to specify the terms and refer to the file, neither of which it included before.
* Add SHA-512/256lloyd2015-01-081-2/+1
| | | | | Define some new functions for copying out arrays of words and use them across hashes.
* Move lib into srclloyd2014-01-103-0/+226