Go to the documentation of this file.
12 #ifndef ZYPP_MEDIA_MEDIABLOCKLIST_H
13 #define ZYPP_MEDIA_MEDIABLOCKLIST_H
15 #include <sys/types.h>
51 size_t addBlock(off_t off,
size_t size);
93 void setChecksum(
size_t blkno, std::string cstype,
int csl,
unsigned char *cs,
size_t cspad=0);
94 bool checkChecksum(
size_t blkno,
const unsigned char *buf,
size_t bufl)
const;
95 std::vector<unsigned char>
getChecksum(
size_t blkno );
105 void setRsum(
size_t blkno,
int rsl,
unsigned int rs,
size_t rspad=0);
106 bool checkRsum(
size_t blkno,
const unsigned char *buf,
size_t bufl)
const;
107 unsigned int updateRsum(
unsigned int rs,
const char *bytes,
size_t len)
const;
108 bool verifyRsum(
size_t blkno,
unsigned int rs)
const;
125 void writeBlock(
size_t blkno, FILE *fp,
const unsigned char *buf,
size_t bufl,
size_t start, std::vector<bool> &found)
const;
126 bool checkChecksumRotated(
size_t blkno,
const unsigned char *buf,
size_t bufl,
size_t start)
const;
130 std::vector<unsigned char>
fsum;
152 #endif // ZYPP_MEDIA_MEDIABLOCKLIST_H
Compute Message Digests (MD5, SHA1 etc)
Easy-to use interface to the ZYPP dependency resolver.
String related utilities and Regular expression matching.