chaudhryfaisal / sgx-pkcs11

Intel SGX token in PKCS#11

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PKCS#11 implementation in Intel SGX enclaves

Build

  1. Install the SGX driver;
  2. Install the SGX SDK and SGX PSW:
    • when you'll be asked where to install SGX SDK, enter /opt/intel;
  3. Compile SGX SSL Library:
  4. Clone this project.
  5. Compile this project:
    cd SGX-PKCS11
    make SGX_MODE=SIM
    
  6. Test:
    ./App Makefile
    
      PKCS11 interface Initialization done
      PKCS11 session opened and Intel SGX initialized
      
      Intel SGX created and returned a pair of RSA keys:
      1-clear RSA public key
      2-private RSA key encrypted with AES-256-cbc
      
      Message to encrypt:
      all:
      
      Encryption initialization...
      Intel SGX has encrypted the message by using the public RSA key
      
      Decryption initialization...
      Intel SGX has decrypted the message by using the private encrypted RSA key
      Decrypted message:
      all:
      
      PKCS11 session closed and Intel SGX closed
      PKCS11 interface closed
      Exit...    
    

About

Intel SGX token in PKCS#11


Languages

Language:C 72.6%Language:C++ 22.2%Language:Makefile 5.2%