summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/sha2.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove obsolete RCS keywordsGuillem Jover2018-05-071-1/+0
| | | | Prompted-by: Jakub Wilk <jwilk@debian.org>
* Reformat and sort all includes with clang-formatJulian Andres Klode2017-07-121-2/+2
| | | | | | | | | | | | | This makes it easier to see which headers includes what. The changes were done by running git grep -l '#\s*include' \ | grep -E '.(cc|h)$' \ | xargs sed -i -E 's/(^\s*)#(\s*)include/\1#\2 include/' To modify all include lines by adding a space, and then running ./git-clang-format.sh.
* try not to call memcpy with length 0 in hash calculationsDavid Kalnischkies2016-09-011-3/+3
| | | | | | | | | | memcpy is marked as nonnull for its input, but ignores the input anyhow if the declared length is zero. Our SHA2 implementations do this as well, it was "just" MD5 and SHA1 missing, so we add the length check here as well as along the callstack as it is really pointless to do all these method calls for "nothing". Reported-By: gcc -fsanitize=undefined
* Annotate more methods with APT_OVERRIDEJulian Andres Klode2015-08-111-1/+1
| | | | | | Gbp-Dch: ignore Reported-By: g++ -Wsuggest-override Thanks: g++ -Wsuggest-override
* add c++11 override marker to overridden methodsDavid Kalnischkies2015-08-101-2/+2
| | | | | | | | | C++11 adds the 'override' specifier to mark that a method is overriding a base class method and error out if not. We hide it in the APT_OVERRIDE macro to ensure that we keep compiling in pre-c++11 standards. Reported-By: clang-modernize -add-override -override-macros Git-Dch: Ignore
* cleanup headers and especially #includes everywhereDavid Kalnischkies2014-03-131-3/+7
| | | | | | | | Beside being a bit cleaner it hopefully also resolves oddball problems I have with high levels of parallel jobs. Git-Dch: Ignore Reported-By: iwyu (include-what-you-use)
* fix some unitialized data membersMichael Vogt2013-08-051-1/+3
|
* Support large files in the complete toolset. Indexes of thisDavid Kalnischkies2011-09-131-3/+3
| | | | size are pretty unlikely for now, but we need it for deb packages which could become bigger than 4GB now (LP: #815895)
* move implementation of checksums around by abstracting even moreDavid Kalnischkies2011-07-131-19/+8
|
* apt-pkg/contrib/sha2.{cc,h}: move duplicated AddFD to baseclassMichael Vogt2011-02-281-22/+65
|
* template based hashsum implementationMichael Vogt2011-02-251-55/+15
|
* move sha512,256 into apt-pkg/sha2.{cc,h}, move gifford implementation to ↵Michael Vogt2011-02-251-195/+109
| | | | sha2_internal.{cc,h}
* add sha512 interface based on sha2 by aaron giffordMichael Vogt2011-02-221-0/+197