{"id":13654184,"url":"https://github.com/lishen-nt/sgx-language-adapter","last_synced_at":"2025-04-23T07:30:42.372Z","repository":{"id":217135273,"uuid":"101142734","full_name":"lishen-nt/sgx-language-adapter","owner":"lishen-nt","description":null,"archived":false,"fork":false,"pushed_at":"2022-03-04T14:26:31.000Z","size":33,"stargazers_count":6,"open_issues_count":1,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-02T02:10:38.687Z","etag":null,"topics":[],"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/lishen-nt.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-08-23T05:50:51.000Z","updated_at":"2024-08-02T02:10:39.336Z","dependencies_parsed_at":null,"dependency_job_id":"ba187199-59ac-4a8c-aac0-1984ff7a4694","html_url":"https://github.com/lishen-nt/sgx-language-adapter","commit_stats":null,"previous_names":["lishen-nt/sgx-language-adapter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lishen-nt%2Fsgx-language-adapter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lishen-nt%2Fsgx-language-adapter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lishen-nt%2Fsgx-language-adapter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lishen-nt%2Fsgx-language-adapter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lishen-nt","download_url":"https://codeload.github.com/lishen-nt/sgx-language-adapter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223913412,"owners_count":17224188,"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":[],"created_at":"2024-08-02T02:01:24.500Z","updated_at":"2024-11-10T04:31:59.403Z","avatar_url":"https://github.com/lishen-nt.png","language":"Makefile","funding_links":[],"categories":["Programming Languages"],"sub_categories":[],"readme":"# sgx-language-adapter\n\n## Sgx_Java\n\nThe project demonstrates several fundamental example APIs created with Java Native Interface (JNI). These example APIs enable JAVA to perform enclave operations in Intel(R) Software Guard Extensions (SGX).\n\n### How to Build/Execute the Sample Code\n\n- Install Intel(R) SGX SDK for Linux* OS\n- Install OpenJDK (sudo apt-get install openjdk-8-jdk)\n- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:\\`pwd\\`\n- Build the project with the prepared Makefile:\n    1. Hardware Mode, Debug build:\n        $ make\n    2. Hardware Mode, Pre-release build:\n        $ make SGX_PRERELEASE=1 SGX_DEBUG=0\n    3. Hardware Mode, Release build:\n        $ make SGX_DEBUG=0\n    4. Simulation Mode, Debug build:\n        $ make SGX_MODE=SIM\n    5. Simulation Mode, Pre-release build:\n        $ make SGX_MODE=SIM SGX_PRERELEASE=1 SGX_DEBUG=0\n    6. Simulation Mode, Release build:\n        $ make SGX_MODE=SIM SGX_DEBUG=0\n- Execute example Java app:\n    $ java JavaApp [size of byte array]\n- Remember to \"make clean\" before switching build mode\n\n\n## Sgx_Python\n\nThe project demonstrates several fundamental example APIs created with Python Ctypes.\nThese example APIs enables Python to perform enclave operations in Intel(R) Software Guard Extensions (SGX):\n    - Initialize and destroy an enclave.\n    - Generate a random byte array using SGX trusted library function (sgx_read_rand).\n\n### How to Build/Execute the Sample Code\n\n- Install Intel(R) SGX SDK for Linux* OS\n- Install Ctypes\n- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:\\`pwd\\`\n- Build the project with the prepared Makefile:\n    1. Hardware Mode, Debug build:\n        $ make\n    2. Hardware Mode, Pre-release build:\n        $ make SGX_PRERELEASE=1 SGX_DEBUG=0\n    3. Hardware Mode, Release build:\n        $ make SGX_DEBUG=0\n    4. Simulation Mode, Debug build:\n        $ make SGX_MODE=SIM\n    5. Simulation Mode, Pre-release build:\n        $ make SGX_MODE=SIM SGX_PRERELEASE=1 SGX_DEBUG=0\n    6. Simulation Mode, Release build:\n        $ make SGX_MODE=SIM SGX_DEBUG=0\n- Execute example Python app:\n    $ python PythonApp.py [optional: size of byte array]\n- Remember to \"make clean\" before switching build mode\n\n### Brief Introduction of Each Folder and File\n\n- Enclave: defines the functions running in the enclave\n- LibSgxC: defines ecall/ocall functions that communicates to the enclave\n- LibSgxPython: python ctypes that wraps the shared library\n- PythonApp.py: the example python application\n\n## Sgx_Go\n\nThe project demonstrates several fundamental example APIs created with .\nThese example APIs enables Python to perform enclave operations in Intel(R) Software Guard Extensions (SGX):\n    - Initialize and destroy an enclave.\n    - Generate a random byte array using SGX trusted library function (sgx_read_rand).\n\n### How to Build/Execute the Sample Code\n\n- Install Intel(R) SGX SDK for Linux* OS\n- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:\\`pwd\\`\n- Build the project with the prepared Makefile:\n    1. Hardware Mode, Debug build:\n        $ make\n    2. Hardware Mode, Pre-release build:\n        $ make SGX_PRERELEASE=1 SGX_DEBUG=0\n    3. Hardware Mode, Release build:\n        $ make SGX_DEBUG=0\n    4. Simulation Mode, Debug build:\n        $ make SGX_MODE=SIM\n    5. Simulation Mode, Pre-release build:\n        $ make SGX_MODE=SIM SGX_PRERELEASE=1 SGX_DEBUG=0\n    6. Simulation Mode, Release build:\n        $ make SGX_MODE=SIM SGX_DEBUG=0\n- Execute example Python app:\n    $ ./GoApp [-len=n]\n - Remember to \"make clean\" before switching build mode\n\n### Brief Introduction of Each Folder and File\n\n- Enclave: defines the functions running in the enclave\n- LibSgxC: defines ecall/ocall functions that communicates to the enclave\n- LibSgxGo: cgo that wraps the shared library\n- GoApp.go: the example Go application\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flishen-nt%2Fsgx-language-adapter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flishen-nt%2Fsgx-language-adapter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flishen-nt%2Fsgx-language-adapter/lists"}