Created
August 25, 2021 10:41
-
-
Save glassonion1/7fa747d956854440d202b91fe3b0da4b to your computer and use it in GitHub Desktop.
This file contains 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 | |
App -> App: "generates key pair" | |
App -> App: "generates a nonce" | |
App -> App: "encrypts the message" | |
App -> Enclave: ecall_decrypt<<ECall>> | |
Enclave -> OnceCell: get | |
return | |
Enclave -> Enclave: "decrypts message" | |
Enclave --> App: SGX_SUCCESS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment