diff --git a/Assignment 7 - SGX Hands-on/README.md b/Assignment 7 - SGX Hands-on/README.md index 1ad57aa..aa692f3 100644 --- a/Assignment 7 - SGX Hands-on/README.md +++ b/Assignment 7 - SGX Hands-on/README.md @@ -4,7 +4,7 @@ Documentation of the Assignment 7 in Systems Security at Ruhr-Universität Bochu This is a program, that uses a TEE to build a signature relay to sign firmware with a master key. For more informationm, read the [project description](doc/abgabe.pdf). -We recommend viewing the [repository](https://git.pfzetto.de/RubNoobs/Systemsicherheit/src/branch/master/Assignment%207%20-%20SGX%20Hands-on) we worked on together at. +We recommend viewing the [repository]("https://git.pfzetto.de/RubNoobs/Systemsicherheit/src/branch/master/Assignment 7 - SGX Hands-on") we worked on together at. ## Requirements diff --git a/Assignment 7 - SGX Hands-on/doc/abgabe.pdf b/Assignment 7 - SGX Hands-on/doc/abgabe.pdf index 05d5adc..4dca903 100644 Binary files a/Assignment 7 - SGX Hands-on/doc/abgabe.pdf and b/Assignment 7 - SGX Hands-on/doc/abgabe.pdf differ diff --git a/Assignment 7 - SGX Hands-on/doc/abgabe.typ b/Assignment 7 - SGX Hands-on/doc/abgabe.typ index 751a8f9..4a77ad0 100644 --- a/Assignment 7 - SGX Hands-on/doc/abgabe.typ +++ b/Assignment 7 - SGX Hands-on/doc/abgabe.typ @@ -122,6 +122,7 @@ Erst, wenn der Schlüssel in die Enclave kommt und entsiegelt wird, kann der Sch Die Enclave bietet eine Schnittstelle für Signaturen mit ECDSA an. Dabei wird die Kurve secp256r1 verwendet. + == Vorteile Dieses Programm bietet einige Vorteile, unter anderem: diff --git a/Assignment 7 - SGX Hands-on/src/enclave/enclave.c b/Assignment 7 - SGX Hands-on/src/enclave/enclave.c index f99f22e..23d2771 100644 --- a/Assignment 7 - SGX Hands-on/src/enclave/enclave.c +++ b/Assignment 7 - SGX Hands-on/src/enclave/enclave.c @@ -206,7 +206,13 @@ sgx_status_t get_public_key(const uint8_t *sealed, uint32_t sealed_size, uint8_t } // unseal public key - return unseal_key_pair(sealed, NULL, (sgx_ec256_public_t *)public); + sgx_status_t status; + if((status = unseal_key_pair(sealed, NULL, (sgx_ec256_public_t *)public)) != SGX_SUCCESS) { + return status; + } + + // return success + return status; } /*