Home | History | Annotate | Download | only in component_updater

Lines Matching refs:crx_file

25 #include "components/crx_file/constants.h"
26 #include "components/crx_file/crx_file.h"
41 explicit CRXValidator(FILE* crx_file) : valid_(false), is_delta_(false) {
42 crx_file::CrxFile::Header header;
43 size_t len = fread(&header, 1, sizeof(header), crx_file);
47 crx_file::CrxFile::Error error;
48 scoped_ptr<crx_file::CrxFile> crx(
49 crx_file::CrxFile::Parse(header, &error));
52 is_delta_ = crx_file::CrxFile::HeaderIsDelta(header);
55 len = fread(&key[0], sizeof(uint8_t), header.key_size, crx_file);
61 fread(&signature[0], sizeof(uint8_t), header.signature_size, crx_file);
66 if (!verifier.VerifyInit(crx_file::kSignatureAlgorithm,
68 sizeof(crx_file::kSignatureAlgorithm)),
80 while ((len = fread(buf.get(), 1, kBufSize, crx_file)) > 0)