This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| footer 複数マシン(Node)にまたがるEnclaveアプリ | |
| skinparam nodesep 10 | |
| skinparam ranksep 10 | |
| ' Azure | |
| !define AzurePuml https://raw.githubusercontent.com/RicardoNiepel/Azure-PlantUML/release/2-1/dist | |
| !includeurl AzurePuml/AzureCommon.puml | |
| !includeurl AzurePuml/AzureSimplified.puml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rectangle "SGXマシン1" as s1 { | |
| [Enclaveアプリ] as e1 | |
| } | |
| rectangle "SGXマシン2" as s2 { | |
| [Enclaveアプリ] as e2 | |
| } | |
| database "Sealing\nData" as sd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class App { | |
| main() | |
| } | |
| class Enclave { | |
| create_sealeddata() <<ECall>> | |
| } | |
| () ECall | |
| App .> ECall | |
| ECall - Enclave |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| footer プライベートキーを複数アプリで共有する | |
| skinparam nodesep 10 | |
| skinparam ranksep 10 | |
| ' Azure | |
| !define AzurePuml https://raw.githubusercontent.com/RicardoNiepel/Azure-PlantUML/release/2-1/dist | |
| !includeurl AzurePuml/AzureCommon.puml | |
| !includeurl AzurePuml/AzureSimplified.puml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| start | |
| :sgx_init_quote; | |
| split | |
| :sgx_target_info_t] | |
| :rsgx_create_report; | |
| :sgx_report_t] | |
| split again | |
| :EPID] | |
| :get_sigrl_from_intel; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class sgx_tse { | |
| rsgx_create_report() | |
| rsgx_verify_report() | |
| } | |
| class sgx_types { | |
| sgx_init_quote() | |
| sgx_calc_quote_size() | |
| sgx_get_quote_size() | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class App { | |
| main() | |
| } | |
| class Enclave { | |
| OnceCell<[u8; 32]> SECRET_KEY | |
| ecall_get_encryption_key() <<ECall>> | |
| ecall_decrypt() <<ECall>> | |
| } | |
| class ChaChaBox | |
| class PublicKey |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| participant "main.rs : App" as App | |
| participant "lib.rs:Enclave" as Enclave | |
| participant "secret_key:OnceCell" as OnceCell | |
| App -> Enclave: ecall_get_encryption_key<<ECall>> | |
| Enclave -> Enclave: "generates key pair" | |
| Enclave -> OnceCell: set | |
| return | |
| Enclave --> App: public_key |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Rectangle Enclaves { | |
| package "Architectural Enclaves" { | |
| ["PvE"] | |
| ["QE"] | |
| ["LE"] | |
| ["PSE"] | |
| ["PcE"] | |
| } | |
| ["Application Enclave"] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class App { | |
| main() | |
| ocall_sgx_init_quote()<<OCall>> | |
| ocall_get_quote()<<OCall>> | |
| } | |
| class Enclave { | |
| verify() <<ECall>> | |
| create_attestation_report() | |
| } | |
| class Client { |