Skip to content

Commit

Permalink
updated ECC keygen TVLA documentation (#381)
Browse files Browse the repository at this point in the history
* updated ECC keygen TVLA documentation

* resolved the comments

* updated tvla png name
  • Loading branch information
mojtaba-bisheh authored Jan 18, 2024
1 parent 06f9e61 commit 7ef68fa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions docs/CaliptraHardwareSpecification.md
Original file line number Diff line number Diff line change
Expand Up @@ -1299,17 +1299,27 @@ In practice, observing a t-value greater than a specific threshold (mainly 4.5)
![](./images/TVLA_threshold.png)


##### KeyGen TVLA

We detected a leakage using TVLA in the HMAC_DRBG algorithm during ECC key generation, based on 150,000 power traces. The leakage originated from a part of the SHA512 function (w_data) that was not fully protected by masking. The same leakage is expected for HMAC operations.

*Figure 40: seed/nonce-dependent leakage detection using TVLA for ECC keygen after 150,000 traces*

![](./images/tvla_keygen.png)

This leakage is very unlikely to occur in practice, even though it exists in TVLA results. Therefore, we will address it in the next release.

##### Signing TVLA

The TVLA results for performing privkey-dependent leakage detection using 20,000 traces is shown in the following figure. Based on this figure, there is no leakage in ECC signing by changing the privkey after 20,000 operations.

*Figure 40: privkey-dependent leakage detection using TVLA for ECC signing after 20,000 traces*
*Figure 41: privkey-dependent leakage detection using TVLA for ECC signing after 20,000 traces*

![](./images/TVLA_privekey.png)

The TVLA results for performing message-dependent leakage detection using 64,000 traces is shown in the following figure. Based on this figure, there is no leakage in ECC signing by changing the message after 64,000 operations.

*Figure 41: Message-dependent leakage detection using TVLA for ECC signing after 64,000 traces*
*Figure 42: Message-dependent leakage detection using TVLA for ECC signing after 64,000 traces*

![](./images/TVLA_msg_dependent.png)

Expand Down
Binary file added docs/images/tvla_keygen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7ef68fa

Please sign in to comment.