summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/sha2_internal.cc
AgeCommit message (Collapse)Author
2014-02-22Fix typos in documentation (codespell)Michael Vogt
2013-06-24fix SHA2* cleanups to zero-out the complete contextDavid Kalnischkies
GCC 4.8 is now clever enough to warn about: contrib/sha2_internal.cc: In function ‘char* SHA256_End(SHA256_CTX*, char*)’: contrib/sha2_internal.cc:656:31: warning: argument to ‘sizeof’ in ‘void* memset(void*, int, size_t)’ call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess] MEMSET_BZERO(context, sizeof(context)); So fix it as suggested. Its interesting though that the SHA2* calculation as far as we need it works even without zeroing out. Git-Dch: Ignore
2012-04-20* apt-pkg/contrib/sha2_internal.cc:David Kalnischkies
- do not use the input data directly but memcpy it instead as it could be unaligned as in the http-transport which causes a sigbus error on sparc (Closes: #669061)
2011-10-30* apt-pkg/contrib/sha2_internal.cc:David Kalnischkies
- use a pointer-union to peace gcc strict-aliasing warning
2011-09-13reorder includes: add <config.h> if needed and include it at firstDavid Kalnischkies
2011-06-29Make private sha2 functions staticMatt Emmerton
(freebsd which can be considered the "official" upstream has applied it)
2011-02-25move sha512,256 into apt-pkg/sha2.{cc,h}, move gifford implementation to ↵Michael Vogt
sha2_internal.{cc,h}