intel / intel/confidential-computing.sgx.sdk

tkey_exchange.cpp error

Open
#11 2 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
C++
Stars
2
Forks
3
PR merge metrics
No merged PRs in 30d

Description

On line 310, se_ret = sgx_rijndael128_cmac_msg(&smkey, (const uint8_t *)p_msg2, maced_size, &mac);
the data to be cmaced including the cmac of msg2 itself. How could one calculate the cmac without calculating the cmac ?

Contributor guide

Open the contributing guide

Research direction

Start with tkey_exchange.cpp around line 310 and trace how p_msg2, maced_size, and mac are populated before sgx_rijndael128_cmac_msg is called. Reproduce the reported self-inclusion and determine which bytes are intended as input; done means the CMAC calculation is resolved and its behavior is verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cryptography, security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.