Adding_an_SGX_Trusted_Library.htm 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <!--------------------------------------------------------------------------->
  2. <!-- Copyright (c) 2016 Intel Corporation. -->
  3. <!-- -->
  4. <!-- All rights reserved. This program and the accompanying materials -->
  5. <!-- are made available under the terms of the Eclipse Public License v1.0 -->
  6. <!-- which accompanies this distribution, and is available at -->
  7. <!-- http://www.eclipse.org/legal/epl-v10.html -->
  8. <!-- -->
  9. <!-- Contributors: -->
  10. <!-- Intel Corporation - initial implementation and documentation -->
  11. <!--------------------------------------------------------------------------->
  12. <?xml version="1.0" encoding="utf-8"?>
  13. <html xmlns:MadCap="http://www.madcapsoftware.com/Schemas/MadCap.xsd" MadCap:lastBlockDepth="4" MadCap:lastHeight="887" MadCap:lastWidth="550">
  14. <head><title>Adding an SGX Trusted Library</title>
  15. <link href="Resources/Stylesheets/intel_css_styles.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <h2>Adding an SGX Trusted Library</h2>
  19. <p>Trusted Static Libraries helps enclave author have libraries of shared code to be reused by enclaves, in exactly the same manner as usual static <code>libxxx.a</code> libraries are used to share code between regular non-SGX applications. The plugin adds a command to generate the skeleton of a trusted shared library.</p>
  20. <p>To add a new SGX Trusted Library:</p>
  21. <ol>
  22. <li>
  23. <p>Open <b>Add New SGX Static Trusted Library</b> dialog by right-click on the root of the project and select the appropriate command from <b>Software Guard Extensions Tools</b> menu:</p>
  24. <p>
  25. <img src="Resources/Images/Add_New_SGX_Static_Trusted_Library_Dialog.png" />
  26. </p>
  27. <p class="figcap">Add New SGX Static Trusted Library Dialog</p>
  28. </li>
  29. <li>
  30. <p>Choose a name for the library and click <b>OK</b>. A skeleton for a trusted library is generated in directory <code>&lt;root&gt;/sgx/trustedlib_&lt;name&gt;</code>:</p>
  31. <p>
  32. <img src="Resources/Images/A_Generated_Trusted_Library.png" />
  33. </p>
  34. <p class="figcap">A Generated Trusted Library</p>
  35. </li>
  36. </ol>
  37. </body>
  38. </html>