Skip to content

Commit

Permalink
allow comment by giscus
Browse files Browse the repository at this point in the history
  • Loading branch information
evan361425 committed Dec 15, 2024
1 parent 30dd1f7 commit b7f439f
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 48 deletions.
42 changes: 0 additions & 42 deletions overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,45 +17,3 @@
<meta property="og:title" content="{{ config.site_name }}" />
{% endif %}
{% endblock %}

{% block styles %}
{{ super() }}
<style>
/**
* Center the table
*/
.md-typeset__table {
margin-left: auto;
margin-right: auto;
display: table;
}

/**
* Center the image
*/
figure img {
margin-left: auto;
margin-right: auto;
}

.md-typeset :is(.admonition, details) {
font-size: .8rem;
}

/**
* It will wider than mjx-math and cause screen broken.
* This element is for screen-reader, see detailed in
* https://docs.mathjax.org/en/latest/basic/accessibility.html#screen-reader-support
*/
.MathJax mjx-assistive-mml {
display: none !important;
}

/**
* Keep zoomed-in image on the top of palette
*/
.medium-zoom-image--opened {
z-index: 10;
}
</style>
{% endblock %}
5 changes: 5 additions & 0 deletions overrides/partials/comments.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<script src="https://giscus.app/client.js" data-repo="evan361425/evan361425.github.io"
data-repo-id="MDEwOlJlcG9zaXRvcnkzODU3ODU3MjY=" data-category="Announcements" data-category-id="DIC_kwDOFv6ffs4ClO-b"
data-mapping="og:title" data-strict="0" data-reactions-enabled="1" data-emit-metadata="0" data-input-position="bottom"
data-theme="preferred_color_scheme" data-lang="zh-TW" data-loading="lazy" crossorigin="anonymous" async>
</script>
12 changes: 6 additions & 6 deletions src/essay/confidential-computing.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ Intel 提供一種機制**為這個應用程式提出證明(attestation)**
#### 信賴基礎

在做證明前,就像 TLS 一樣,需要有一個信賴的起點,所有從這起點延伸的金鑰都應該被信任。
在 SGX 中,這個原點分別是*佈建密碼* (provisioning secret) 和*密封密碼* (seal secret)
在 SGX 中,這個原點是*佈建密碼*provisioning secret

??? question "為什麼稱為密碼?"
[各種和 Attestation 相關的金鑰][keys]中,
Expand All @@ -276,9 +276,6 @@ Intel 提供一種機制**為這個應用程式提出證明(attestation)**

e-fuse 一個重要特性是在寫入資料後就無法更改,這使得它們適用於儲存敏感的密碼資訊,例如金鑰。

密封密碼相對於佈建密碼,是在生產 CPU 過程中被獨立且秘密的放在 CPU e-fuse 中,
也就是說,只有通過該設備的指令才能存取密封密碼,任何其他系統和設備都無法知道,包括 Intel。

#### Attestation 產生的流程

主要分成 2 段:
Expand Down Expand Up @@ -367,8 +364,11 @@ QE 接收來自飛地的本地驗證報告後,會同樣使用 `EGETKEY` 指令

儲存空間除了 PRM 之外,
透過把資料加密讓飛地擁有更多可以使用的記憶體空間或甚至存進檔案中進行保留,這手法稱作密封(sealing)。
密封用的金鑰稱為密封金鑰(seal key),同樣透過 `EGETKEY` 取得,
實作是使用密封秘密(seal secret)去延伸出金鑰。
密封用的金鑰稱為密封金鑰(seal key),同樣透過 `EGETKEY` 取得。

密封金鑰來源於*密封密碼*(seal secret),換句話說,其是密封機制的信賴基礎。
密封密碼相對於[佈建密碼](#信賴基礎),是在生產 CPU 過程中被獨立且秘密的放在 CPU e-fuse 中,
也就是說,只有通過該設備的指令才能存取密封密碼,任何其他系統和設備都無法知道,包括 Intel。

你可以在請求金鑰時,給予 `MRENCLAVE``MRSIGNER`
`MRENCLAVE` 代表不同的飛地且不同的狀態都會產生新的密封金鑰,
Expand Down
37 changes: 37 additions & 0 deletions src/stylesheets/custom.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,40 @@
/**
* Center the table
*/
.md-typeset__table {
margin-left: auto;
margin-right: auto;
display: table;
}

/**
* Center the image
*/
figure img {
margin-left: auto;
margin-right: auto;
}

.md-typeset :is(.admonition, details) {
font-size: .8rem;
}

/**
* It will wider than mjx-math and cause screen broken.
* This element is for screen-reader, see detailed in
* https://docs.mathjax.org/en/latest/basic/accessibility.html#screen-reader-support
*/
.MathJax mjx-assistive-mml {
display: none !important;
}

/**
* Keep zoomed-in image on the top of palette
*/
.medium-zoom-image--opened {
z-index: 10;
}

.md-content__inner strong {
background: linear-gradient(120deg, #6debad7d 0%, #6debad7d 100%);
background-repeat: no-repeat;
Expand Down

0 comments on commit b7f439f

Please sign in to comment.