12 #ifndef ZYPP_CURL_PARSER_MEDIABLOCKLIST_H 13 #define ZYPP_CURL_PARSER_MEDIABLOCKLIST_H 15 #include <sys/types.h> 19 #include <zypp-core/Digest.h> 52 size_t addBlock(off_t off,
size_t size);
96 void setChecksum(
size_t blkno, std::string cstype,
int csl,
unsigned char *cs,
size_t cspad=0);
97 bool checkChecksum(
size_t blkno,
const unsigned char *buf,
size_t bufl)
const;
110 void setRsum(
size_t blkno,
int rsl,
unsigned int rs,
size_t rspad=0);
117 bool checkRsum(
size_t blkno,
const unsigned char *buf,
size_t bufl)
const;
118 unsigned int updateRsum(
unsigned int rs,
const char *bytes,
size_t len)
const;
119 bool verifyRsum(
size_t blkno,
unsigned int rs)
const;
137 void writeBlock(
size_t blkno, FILE *fp,
const unsigned char *buf,
size_t bufl,
size_t start, std::vector<bool> &found)
const;
138 bool checkChecksumRotated(
size_t blkno,
const unsigned char *buf,
size_t bufl,
size_t start)
const;
164 #endif // ZYPP_CURL_PARSER_MEDIABLOCKLIST_H
Compute Message Digests (MD5, SHA1 etc)
String related utilities and Regular expression matching.
Easy-to use interface to the ZYPP dependency resolver.