15 #ifndef ZYPP_CORE_DIGEST_H 16 #define ZYPP_CORE_DIGEST_H 22 #include <zypp-core/Pathname.h> 23 #include <zypp-core/ByteArray.h> 50 static const std::string &
md5();
52 static const std::string &
sha1();
54 static const std::string &
sha224();
56 static const std::string &
sha256();
58 static const std::string &
sha384();
60 static const std::string &
sha512();
83 const std::string&
name();
90 bool update(
const char* bytes,
size_t len);
97 bool update(std::istream& is,
size_t bufsize = 4096);
114 #ifdef __cpp_lib_string_view 119 static ByteArray hexStringToByteArray ( std::string_view
str );
120 static UByteArray hexStringToUByteArray ( std::string_view
str );
149 static std::string
digest(
const std::string&
name, std::istream& is,
size_t bufsize = 4096);
152 static std::string
digest(
const std::string &
name,
const std::string & input,
size_t bufsize = 4096 );
UByteArray digestVector()
get vector of unsigned char representation of the digest
static const std::string & sha256()
sha256
static const std::string & sha1()
sha1
std::string digest()
get hex string representation of the digest
Compute Message Digests (MD5, SHA1 etc)
String related utilities and Regular expression matching.
const std::string & name()
get the name of the current digest algorithm
bool reset()
reset internal digest state
static std::string digestVectorToString(const UByteArray &vec)
get hex string representation of the digest vector given as parameter
static const std::string & sha512()
sha512
const Digest & operator=(const Digest &d)
bool create(const std::string &name)
initialize creation of a new message digest
static const std::string & md5()
md5
static const std::string & sha224()
sha224
Easy-to use interface to the ZYPP dependency resolver.
bool update(const char *bytes, size_t len)
feed data into digest computation algorithm
static const std::string & sha384()
sha384