File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -131,9 +131,7 @@ contract KmsAuth is
131131 }
132132
133133 // Function to deregister an aggregated MR measurement
134- function removeKmsAggregatedMr (
135- bytes32 mrAggregated
136- ) external onlyOwner {
134+ function removeKmsAggregatedMr (bytes32 mrAggregated ) external onlyOwner {
137135 kmsAllowedAggregatedMrs[mrAggregated] = false ;
138136 emit KmsAggregatedMrRemoved (mrAggregated);
139137 }
@@ -178,6 +176,14 @@ contract KmsAuth is
178176 function isKmsAllowed (
179177 AppBootInfo calldata bootInfo
180178 ) external view returns (bool isAllowed , string memory reason ) {
179+ // Check if the TCB status is up to date
180+ if (
181+ keccak256 (abi.encodePacked (bootInfo.tcbStatus)) !=
182+ keccak256 (abi.encodePacked ("UpToDate " ))
183+ ) {
184+ return (false , "TCB status is not up to date " );
185+ }
186+
181187 // Check if the aggregated MR is allowed
182188 if (! kmsAllowedAggregatedMrs[bootInfo.mrAggregated]) {
183189 return (false , "Aggregated MR not allowed " );
You can’t perform that action at this time.
0 commit comments