Lines Matching refs:apex
49 namespace apex { namespace
152 Result<std::unique_ptr<AvbFooter>> getAvbFooter(const ApexFile& apex, in getAvbFooter() argument
158 off_t offset = apex.GetImageSize() + apex.GetImageOffset() - AVB_FOOTER_SIZE; in getAvbFooter()
184 Result<std::string> getPublicKeyName(const ApexFile& apex, const uint8_t* data, in getPublicKeyName() argument
191 << apex.GetPath(); in getPublicKeyName()
194 if (keyName != apex.GetManifest().name()) { in getPublicKeyName()
196 << apex.GetManifest().name() << "'" in getPublicKeyName()
202 Result<void> verifyVbMetaSignature(const ApexFile& apex, const uint8_t* data, in verifyVbMetaSignature() argument
215 return Error() << "Error verifying " << apex.GetPath() << ": " in verifyVbMetaSignature()
218 return Error() << "Error verifying " << apex.GetPath() << ": " in verifyVbMetaSignature()
221 return Error() << "Error verifying " << apex.GetPath() << ": " in verifyVbMetaSignature()
227 Result<std::string> key_name = getPublicKeyName(apex, data, length); in verifyVbMetaSignature()
238 return Error() << "Error verifying " << apex.GetPath() << ": " in verifyVbMetaSignature()
244 LOG(VERBOSE) << apex.GetPath() << ": public key matches."; in verifyVbMetaSignature()
248 Result<std::unique_ptr<uint8_t[]>> verifyVbMeta(const ApexFile& apex, in verifyVbMeta() argument
255 off_t offset = apex.GetImageOffset() + footer.vbmeta_offset; in verifyVbMeta()
263 verifyVbMetaSignature(apex, vbmeta_buf.get(), footer.vbmeta_size); in verifyVbMeta()