zoukankan      html  css  js  c++  java
  • Use the "Enclave Signing Tool" to sign enclave files

    It's one of the Intel SGX SDK tools, descibed by the official document: "Generates the enclave metadata, which includes the enclave signature, and adds such metadata to the enclave image.". Though the corresponding enclave file will be signed automatically at compling time, still developers can make use of this tool to manually sign corresponding files. Specifically, 2 methods are available to do this.

    1. One-step signing process

    Example command (in windows os) is as follows:

    sgx_sign sign -enclave testEnclave.dll -config ../testEnclave/testEnclave.config.xml -out testEnclave_signed.dll -key ../testEnclave/testEnclave_private.pem

    Note that the above command is typed under this directory: PathToYourEnclaveProject/encalveProject/Debug

    The "testEnclave.config.xml" and "testEnclave_private.pem" files are generated simultaneously when the project was created while the "testEnclave.dll" and "testEnclave_signed.dll" file are generated right after compiling the project. 

    *Note that in Linux distribution OS, the .dll file should be replaced by .so file.

    2. Two-step signing process

    I'll add it later on....

     

  • 相关阅读:
    驯服 Tiger: 并发集合 超越 Map、Collection、List 和 Set
    模块化Java:声明式模块化
    模块化Java:静态模块化
    用 Apache Tika 理解信息内容
    Refactoring: Encapsulate Collection
    新型的几乎万能的数据结构CDO
    CDO数据结构基础(1) 转载
    模块化Java简介(转载infoq)
    模块化Java:动态模块化
    责任链模式(C++)
  • 原文地址:https://www.cnblogs.com/zhoujunjie/p/10518450.html
Copyright © 2011-2022 走看看