libcamera: ipa_module: Load IPA module signature

Load the signature from the .sign file, if available, when loading the
IPA module information and store it in the IPAModule class.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
Laurent Pinchart
2020-03-29 05:33:04 +03:00
parent 9893ff92c4
commit bf4049fd90
2 changed files with 33 additions and 0 deletions
+4
View File
@@ -7,7 +7,9 @@
#ifndef __LIBCAMERA_IPA_MODULE_H__
#define __LIBCAMERA_IPA_MODULE_H__
#include <stdint.h>
#include <string>
#include <vector>
#include <ipa/ipa_interface.h>
#include <ipa/ipa_module_info.h>
@@ -25,6 +27,7 @@ public:
bool isValid() const;
const struct IPAModuleInfo &info() const;
const std::vector<uint8_t> signature() const;
const std::string &path() const;
bool load();
@@ -38,6 +41,7 @@ public:
private:
struct IPAModuleInfo info_;
std::vector<uint8_t> signature_;
std::string libPath_;
bool valid_;