Home
last modified time | relevance | path

Searched refs:footer (Results 1 – 8 of 8) sorted by relevance

/base/startup/hvb/libhvb/src/footer/
Dhvb_footer.c20 static enum hvb_errno _footer_parser(struct hvb_footer *footer, struct hvb_buf *footer_buf) in _footer_parser() argument
24 if (footer_buf->size < sizeof(*footer)) { in _footer_parser()
29 hvb_memcpy((uint8_t *)footer, footer_buf->addr, sizeof(*footer)); in _footer_parser()
32 if (hvb_memcmp(footer->magic, HVB_FOOTER_MAGIC, sizeof(footer->magic)) != 0) { in _footer_parser()
38 size = footer->image_size + footer->cert_size + footer_buf->size; in _footer_parser()
39 if (size < footer->image_size || size > footer->partition_size) { in _footer_parser()
47 static enum hvb_errno _load_and_parse_footer(struct hvb_ops *ops, struct hvb_footer *footer, const … in _load_and_parse_footer() argument
66 ret = _footer_parser(footer, &footer_buf); in _load_and_parse_footer()
75 …o _load_cert(struct hvb_ops *ops, struct hvb_buf *cert, const char *ptn, struct hvb_footer *footer) in _load_cert() argument
79 uint64_t offset = footer->cert_offset; in _load_cert()
[all …]
/base/update/updater/services/package/pkg_verify/
Dzip_pkg_parse.cpp104 PkgBuffer footer(footerSize); in ParseZipPkg() local
105 int32_t ret = pkgStream->Read(footer, footerStart, footerSize, readLen); in ParseZipPkg()
114 ret = ParsePkgFooter(footer.buffer, PKG_FOOTER_SIZE, signCommentAppendLen, signCommentTotalLen); in ParseZipPkg()
123 int32_t ZipPkgParse::ParsePkgFooter(const uint8_t *footer, size_t length, in ParsePkgFooter() argument
135 signFooter.signDataStart = ReadLE16(footer); in ParsePkgFooter()
137 signFooter.signDataFlag = ReadLE16(footer + offset); in ParsePkgFooter()
139 signFooter.signDataSize = ReadLE16(footer + offset); in ParsePkgFooter()
Dzip_pkg_parse.h35 int32_t ParsePkgFooter(const uint8_t *footer, size_t length, uint16_t &signCommentAppendLen,
/base/startup/hvb/tools/
Dhvbtool.py76 def __init__(self, footer=None): argument
77 self.foot = footer
80 self.partition_size, _) = struct.unpack(self.FOOTER_FORMAT, footer)
933 self.footer = b''
944 self.footer += footer_magic \
1004 self.footer
1006 cert_and_footer = self.hvb_cert_content + self.footer
1012 hashtree_length - hvb_cert_length - self.FOOTER_SIZE) + self.footer
1052 footer = HvbFooter(footer_bin)
1053 footer.info_footer()
[all …]
Dreadme.md101 - 擦除签名镜像的footer及签名内容
/base/update/packaging_tools/
Dbuild_pkcs7.py152 footer = struct.pack(SIGNATURE_FOOTER_FORMAT, signature_total_size,
154 f_signed.write(footer)
/base/startup/hvb/libhvb/
DBUILD.gn40 "src/footer/hvb_footer.c",
/base/startup/init/services/modules/seccomp/scripts/
Dgenerate_code_from_policy.py988 footer = textwrap.dedent('''\
996 ' ' + '\n '.join(self.bpf_generator.bpf_policy) + footer