12 #ifndef ZYPP_MEDIA_MEDIABLOCKLIST_H 13 #define ZYPP_MEDIA_MEDIABLOCKLIST_H 15 #include <sys/types.h> 19 #include <zypp/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;
109 void setRsum(
size_t blkno,
int rsl,
unsigned int rs,
size_t rspad=0);
110 bool checkRsum(
size_t blkno,
const unsigned char *buf,
size_t bufl)
const;
111 unsigned int updateRsum(
unsigned int rs,
const char *bytes,
size_t len)
const;
112 bool verifyRsum(
size_t blkno,
unsigned int rs)
const;
129 void writeBlock(
size_t blkno, FILE *fp,
const unsigned char *buf,
size_t bufl,
size_t start, std::vector<bool> &found)
const;
130 bool checkChecksumRotated(
size_t blkno,
const unsigned char *buf,
size_t bufl,
size_t start)
const;
156 #endif // ZYPP_MEDIA_MEDIABLOCKLIST_H
Compute Message Digests (MD5, SHA1 etc)
String related utilities and Regular expression matching.
Easy-to use interface to the ZYPP dependency resolver.