32  { 
static std::string 
_type( 
"sha" ); 
return _type; }
 
 
   56        if ( _type == sha512Type() )
 
   58        if ( _type.empty() || _type == shaType() )
 
  128          WAR << 
"Can't determine type of " << checksum.size() << 
" byte checksum '" << _checksum << 
"'" << endl;
 
  136    std::string msg = 
str::form ( 
_(
"Dubious type '%s' for %u byte checksum '%s'"),
 
  137                                  _type.c_str(), checksum.size(), _checksum.c_str() );
 
  138    if (    _type == md5Type()
 
  139         || _type == shaType()
 
  140         || _type == sha1Type()
 
  141         || _type == sha224Type()
 
  142         || _type == sha256Type()
 
  143         || _type == sha384Type()
 
  144         || _type == sha512Type() )
 
 
  156    if ( input_r.good() && ! type_r.empty() )
 
  160        if ( ! input_r.eof() || 
_checksum.empty() )
 
 
  178    std::ostringstream 
str;
 
 
  187        return str << std::string(
"NoCheckSum");
 
 
  195    const std::string & 
type( obj.
type() );
 
  198    if ( ! 
type.empty() ) 
str << 
" type=\"" << 
type << 
"\"";
 
 
  212  { 
return ! ( lhs == rhs ); }
 
 
std::ostream & operator<<(std::ostream &str, const zypp::sat::detail::CDataiterator *obj)
static const std::string & sha512Type()
bool operator==(const CheckSum &lhs, const CheckSum &rhs)
std::string asString() const
static const std::string & sha256Type()
static const std::string & sha384Type()
std::ostream & dumpAsXmlOn(std::ostream &str, const CheckSum &obj)
XML output.
static const std::string & shaType()
static const std::string & sha1Type()
static const std::string & sha224Type()
static const std::string & md5Type()
std::string checksum() const
CheckSum()
Default Ctor: empty checksum.
bool operator!=(const CheckSum &lhs, const CheckSum &rhs)
static const std::string & md5()
md5
static const std::string & sha384()
sha384
std::string digest()
get hex string representation of the digest
static const std::string & sha512()
sha512
static const std::string & sha1()
sha1
static const std::string & sha256()
sha256
static const std::string & sha224()
sha224
String related utilities and Regular expression matching.
std::string toLower(const std::string &s)
Return lowercase version of s.
std::string form(const char *format,...) __attribute__((format(printf
Printf style construction of std::string.
Easy-to use interface to the ZYPP dependency resolver.
#define ZYPP_THROW(EXCPT)
Drops a logline and throws the Exception.