summaryrefslogtreecommitdiff
path: root/include/keymaster/remote_provisioning_context.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/keymaster/remote_provisioning_context.h')
-rw-r--r--include/keymaster/remote_provisioning_context.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/keymaster/remote_provisioning_context.h b/include/keymaster/remote_provisioning_context.h
index fee1d44..cc65502 100644
--- a/include/keymaster/remote_provisioning_context.h
+++ b/include/keymaster/remote_provisioning_context.h
@@ -23,6 +23,7 @@
#include <vector>
#include <cppbor.h>
+#include <keymaster/android_keymaster_messages.h>
#include <keymaster/cppcose/cppcose.h>
namespace keymaster {
@@ -33,7 +34,7 @@ class RemoteProvisioningContext {
virtual ~RemoteProvisioningContext(){};
virtual std::vector<uint8_t> DeriveBytesFromHbk(const std::string& context,
size_t numBytes) const = 0;
- virtual std::unique_ptr<cppbor::Map> CreateDeviceInfo() const = 0;
+ virtual std::unique_ptr<cppbor::Map> CreateDeviceInfo(uint32_t csrVersion) const = 0;
virtual cppcose::ErrMsgOr<std::vector<uint8_t>>
BuildProtectedDataPayload(bool testMode, //
const std::vector<uint8_t>& macKey, //
@@ -42,6 +43,9 @@ class RemoteProvisioningContext {
// input hasn't changed across multiple calls to the remote provisioning HAL.
virtual std::optional<cppcose::HmacSha256>
GenerateHmacSha256(const cppcose::bytevec& input) const = 0;
+ virtual void GetHwInfo(GetHwInfoResponse* hwInfo) const = 0;
+ virtual cppcose::ErrMsgOr<cppbor::Array> BuildCsr(const std::vector<uint8_t>& challenge,
+ cppbor::Array keysToSign) const = 0;
private:
// Uncopyable.