Go to the documentation of this file.
15 #ifndef ZYPP_MEDIA_DIGEST_H
16 #define ZYPP_MEDIA_DIGEST_H
60 static const std::string &
md5();
62 static const std::string &
sha1();
64 static const std::string &
sha224();
66 static const std::string &
sha256();
68 static const std::string &
sha384();
70 static const std::string &
sha512();
93 const std::string&
name();
100 bool update(
const char* bytes,
size_t len);
107 bool update(std::istream& is,
size_t bufsize = 4096);
150 static std::string
digest(
const std::string&
name, std::istream& is,
size_t bufsize = 4096);
153 static std::string
digest(
const std::string &
name,
const std::string & input,
size_t bufsize = 4096 );
static const std::string & sha1()
sha1
std::vector< unsigned char > digestVector()
get vector of unsigned char representation of the digest
virtual bool askUserToAcceptWrongDigest(const Pathname &file, const std::string &requested, const std::string &found)
const std::string & name()
get the name of the current digest algorithm
bool reset()
reset internal digest state
static const std::string & sha224()
sha224
Compute Message Digests (MD5, SHA1 etc)
static const std::string & sha384()
sha384
static const std::string & md5()
md5
virtual bool askUserToAccepUnknownDigest(const Pathname &file, const std::string &name)
static std::string digestVectorToString(const std::vector< unsigned char > &vec)
get hex string representation of the digest vector given as parameter
static const std::string & sha512()
sha512
Easy-to use interface to the ZYPP dependency resolver.
std::string digest()
get hex string representation of the digest
bool create(const std::string &name)
initialize creation of a new message digest
bool update(const char *bytes, size_t len)
feed data into digest computation algorithm
static const std::string & sha256()
sha256
virtual bool askUserToAcceptNoDigest(const zypp::Pathname &file)
const Digest & operator=(const Digest &d)