{"id":17748600,"url":"https://github.com/pc-magas/myfirstenclave","last_synced_at":"2026-01-30T05:12:18.565Z","repository":{"id":143418731,"uuid":"110373023","full_name":"pc-magas/myFirstEnclave","owner":"pc-magas","description":"A bare minimum enclave for educational purpoces","archived":false,"fork":false,"pushed_at":"2017-12-09T16:13:12.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-19T09:56:29.886Z","etag":null,"topics":["educational-purpoces","enclave","intel","sgx","sgx-enclave"],"latest_commit_sha":null,"homepage":null,"language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pc-magas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-11T19:17:43.000Z","updated_at":"2024-04-19T09:56:29.887Z","dependencies_parsed_at":"2023-09-23T12:19:35.079Z","dependency_job_id":null,"html_url":"https://github.com/pc-magas/myFirstEnclave","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pc-magas%2FmyFirstEnclave","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pc-magas%2FmyFirstEnclave/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pc-magas%2FmyFirstEnclave/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pc-magas%2FmyFirstEnclave/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pc-magas","download_url":"https://codeload.github.com/pc-magas/myFirstEnclave/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246598150,"owners_count":20802972,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["educational-purpoces","enclave","intel","sgx","sgx-enclave"],"created_at":"2024-10-26T10:07:58.446Z","updated_at":"2026-01-30T05:12:13.545Z","avatar_url":"https://github.com/pc-magas.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# My First Simple enclave\n\nThis is my first enclave for testing and educational purpoce.\nIt is supposed to generate a library that does a simple adding into an intel SGX environment.\n\nThis repo contains 2 branches:\n\n* The `enclave_only` branch that shows only how an enclave is built and signed.\n* The `master` branch that contains the how build sign and link your enclave with an application.\n\n## Compile\n\n### How to Compile\n\nYou will need to run the following command:\n\n```bash\nmake\n```\n\n### Key generation for enclave signing:\n\nThe makefile generates the keys for enclave signing in `~/.sgx` directory. By default it will generate the `~/.sgx/MyFirstEnclave.pem` key. You can modify the path where the key will be stored by modifying the `KEY_STORAGE_PATH` and `KEY_PRIVATE_FILE` and `KEY_PUBLIC_FILE` accorditly. The following table explains the valies of the variables.\n\nVariable | Use\n--- | ---\n`KEY_STORAGE_PATH` | The directory where the keys will be stored.\n`KEY_PRIVATE_FILE` | The private key that will be generated and will be used to sign the enclave.\n`KEY_PUBLIC_FILE` | The public key that will be used from others to verify the signed enclave.\n\n### The `Makefile` in Simple terms\n\nAs far I discovered the application you can compile an enclave by doing the following compile chain:\n\n![In what order to compile the files](https://media.githubusercontent.com/media/pc-magas/myFirstEnclave/master/doc/SGX%20Compile%20workflow.png)\n\n\n## Requirements\n\n* A GNU\\Linux Distribution with the [sgx driver](https://github.com/01org/linux-sgx-driver) and the [sdk \u0026 psw libraries](https://github.com/01org/linux-sgx)\n* As mentioned on the links above to export the correct source.\n* The `gcc` , `g++`, `make` and `openssl` tools.\n* [Git lfs](https://git-lfs.github.com/) for documentation (optionally)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpc-magas%2Fmyfirstenclave","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpc-magas%2Fmyfirstenclave","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpc-magas%2Fmyfirstenclave/lists"}