12#ifndef ZYPP_CORE_CHECKSUM_H
13#define ZYPP_CORE_CHECKSUM_H
19#include <zypp-core/base/Exception.h>
20#include <zypp-core/Pathname.h>
26 struct CheckSumException :
public Exception
55 CheckSum(
const std::string &
type, std::istream & input_r );
58 CheckSum(
const std::string &
type, std::istream && input_r )
63 static const std::string &
md5Type();
64 static const std::string &
shaType();
65 static const std::string &
sha1Type();
113 std::string
type()
const;
126 std::ostream &
operator<<( std::ostream &
str,
const CheckSum & obj );
129 std::ostream &
dumpAsXmlOn( std::ostream &
str,
const CheckSum & obj );
132 bool operator==(
const CheckSum & lhs,
const CheckSum & rhs );
135 bool operator!=(
const CheckSum & lhs,
const CheckSum & rhs );
static CheckSum sha224FromString(const std::string &input_r)
static CheckSum sha1FromString(const std::string &input_r)
static CheckSum md5(const std::string &checksum)
static CheckSum sha512FromString(const std::string &input_r)
static const std::string & sha512Type()
std::string asString() const
static CheckSum sha384(const std::string &checksum)
static const std::string & sha256Type()
static const std::string & sha384Type()
static const std::string & shaType()
static CheckSum sha1(const std::string &checksum)
static const std::string & sha1Type()
static const std::string & sha224Type()
static const std::string & md5Type()
static CheckSum md5FromString(const std::string &input_r)
std::string checksum() const
static CheckSum sha512(const std::string &checksum)
static CheckSum sha384FromString(const std::string &input_r)
static CheckSum sha256(const std::string &checksum)
static CheckSum sha(const std::string &checksum)
static CheckSum shaFromString(const std::string &input_r)
CheckSum()
Default Ctor: empty checksum.
static CheckSum sha256FromString(const std::string &input_r)
static CheckSum sha224(const std::string &checksum)
const std::string & msg() const
Return the message string provided to the ctor.
String related utilities and Regular expression matching.
Easy-to use interface to the ZYPP dependency resolver.
bool operator==(const SetRelation::Enum &lhs, const SetCompare &rhs)
This is an overloaded member function, provided for convenience. It differs from the above function o...
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
std::ostream & dumpAsXmlOn(std::ostream &str, const Repository &obj)
bool operator!=(const SetRelation::Enum &lhs, const SetCompare &rhs)
This is an overloaded member function, provided for convenience. It differs from the above function o...
CheckSumException(const std::string &msg)