summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/sha2.h
AgeCommit message (Collapse)AuthorFilesLines
2019-06-12Run unifdef -DAPT_{8,9,10,15}_CLEANER_HEADERSJulian Andres Klode1-5/+0
2018-05-07Remove obsolete RCS keywordsGuillem Jover1-1/+0
Prompted-by: Jakub Wilk <jwilk@debian.org>
2017-07-12Reformat and sort all includes with clang-formatJulian Andres Klode1-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.
2016-09-01try not to call memcpy with length 0 in hash calculationsDavid Kalnischkies1-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
2015-08-11Annotate more methods with APT_OVERRIDEJulian Andres Klode1-1/+1
Gbp-Dch: ignore Reported-By: g++ -Wsuggest-override Thanks: g++ -Wsuggest-override
2015-08-10add c++11 override marker to overridden methodsDavid Kalnischkies1-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
2014-03-13cleanup headers and especially #includes everywhereDavid Kalnischkies1-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)
2013-08-05fix some unitialized data membersMichael Vogt1-1/+3
2011-09-13Support large files in the complete toolset. Indexes of thisDavid Kalnischkies1-3/+3
size are pretty unlikely for now, but we need it for deb packages which could become bigger than 4GB now (LP: #815895)
2011-07-13move implementation of checksums around by abstracting even moreDavid Kalnischkies1-19/+8
2011-02-28apt-pkg/contrib/sha2.{cc,h}: move duplicated AddFD to baseclassMichael Vogt1-22/+65
2011-02-25template based hashsum implementationMichael Vogt1-55/+15
2011-02-25move sha512,256 into apt-pkg/sha2.{cc,h}, move gifford implementation to ↵Michael Vogt1-195/+109
sha2_internal.{cc,h}
2011-02-22add sha512 interface based on sha2 by aaron giffordMichael Vogt1-0/+197