Replace local sha1 and md5 implementations with rpm's hash functionality
authorPanu Matilainen <pmatilai@laiskiainen.org>
Tue, 5 Apr 2011 08:43:40 +0000 (11:43 +0300)
committerPanu Matilainen <pmatilai@laiskiainen.org>
Tue, 5 Apr 2011 08:43:40 +0000 (11:43 +0300)
commitf713f56d4f92da95fc5686f92b6c5499f4c0480b
treea2cad917530f235dad15be4af339d2c015251342
parent428bee47513dc9ac8b8409849871d040c0e31d39
Replace local sha1 and md5 implementations with rpm's hash functionality
- implement an algorithm agnostic c++ interface to rpm's digest functions,
  based on the former md5/sha1 summation class interface
- minimally "port" md5 + sha1 summation classes on top of the new class
- the result is always used in string format, not bothering to wrap
  MD5/SHA1SumValue class fully, just typedef them as strings and fix
  users
13 files changed:
apt-pkg/Makefile.am
apt-pkg/Makefile.in
apt-pkg/acquire-item.cc
apt-pkg/contrib/cdromutl.cc
apt-pkg/contrib/md5.cc [deleted file]
apt-pkg/contrib/md5.h
apt-pkg/contrib/rhash.cc [new file with mode: 0644]
apt-pkg/contrib/rhash.h [new file with mode: 0644]
apt-pkg/contrib/sha1.cc [deleted file]
apt-pkg/contrib/sha1.h
apt-pkg/rpm/rpmhandler.cc
test/hash.cc
tools/cached_md5.cc