Skip to content

[TOB] DEV-3790: ID-12 #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 28, 2025
Merged
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
16 changes: 16 additions & 0 deletions src/bases/PckDao.sol
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ abstract contract PckDao is DaoBase, SigVerifyBase {
bytes18 tcbm
);

event UpsertPlatformTcb(
bytes16 indexed qeid,
bytes2 indexed pceid,
bytes16 platformCpuSvn,
bytes2 platformPceSvn,
bytes18 tcbm
);

string constant PCK_PLATFORM_CA_COMMON_NAME = "Intel SGX PCK Platform CA";
string constant PCK_PROCESSOR_CA_COMMON_NAME = "Intel SGX PCK Processor CA";
string constant PCK_COMMON_NAME = "Intel SGX PCK Certificate";
Expand Down Expand Up @@ -220,6 +228,14 @@ abstract contract PckDao is DaoBase, SigVerifyBase {
bytes32 tcbmMappingKey = TCB_MAPPING_KEY(qeidBytes, pceidBytes, platformCpuSvnBytes, platformPceSvnBytes);
_setTcbrToTcbmMapping(tcbmMappingKey, tcbmBytes);

emit UpsertPlatformTcb(
qeidBytes,
pceidBytes,
platformCpuSvnBytes,
platformPceSvnBytes,
tcbmBytes
);

return bytes32(0);
}

Expand Down
Loading