Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions ipc/keymaster_ipc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@

#include "trusty_keymaster.h"
#include "trusty_logger.h"
#include <trusty_std.h>
#include <trusty_uuid.h>

using namespace keymaster;

Expand Down Expand Up @@ -505,6 +507,11 @@ static long keymaster_dispatch_non_secure(keymaster_chan_ctx* ctx,
return do_dispatch(&TrustyKeymaster::SetBootParams, msg, payload_size,
out, out_size);

case KM_PROVISION_KEYBOX:
LOG_D("Dispatching KM_PROVISION_KEYBOX, size %d", payload_size);
return do_dispatch(&TrustyKeymaster::ProvisionAttesationKeybox, msg, payload_size,
out, out_size);

case KM_SET_ATTESTATION_KEY:
LOG_D("Dispatching SET_ATTESTION_KEY, size %d", payload_size);
return do_dispatch(&TrustyKeymaster::SetAttestationKey, msg,
Expand Down
1 change: 1 addition & 0 deletions ipc/keymaster_ipc.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ enum keymaster_command {

// Bootloader calls.
KM_SET_BOOT_PARAMS = (0x1000 << KEYMASTER_REQ_SHIFT),
KM_PROVISION_KEYBOX = (0x1001 << KEYMASTER_REQ_SHIFT),
KM_SET_ATTESTATION_KEY = (0x2000 << KEYMASTER_REQ_SHIFT),
KM_APPEND_ATTESTATION_CERT_CHAIN = (0x3000 << KEYMASTER_REQ_SHIFT),
KM_ATAP_GET_CA_REQUEST = (0x4000 << KEYMASTER_REQ_SHIFT),
Expand Down
2 changes: 1 addition & 1 deletion ipc/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ CUR_DIR := $(GET_LOCAL_DIR)

MODULE_SRCS += $(CUR_DIR)/keymaster_ipc.cpp

MODULE_DEPS += trusty/user/base/interface/keymaster
MODULE_DEPS += interface/keymaster

CUR_DIR =
Loading