#include "stdlib.h" //#include "string" #include "sgx_tcrypto.h" uint32_t create_rsa_key_pair_for_signing_manifest(/*std::string& priv_key, std::string& pub_key*/) { uint32_t ret_sgx; uint8_t* n=(uint8_t*)malloc(384); uint8_t* d=(uint8_t*)malloc(384); uint8_t* p=(uint8_t*)malloc(192); uint8_t* q=(uint8_t*)malloc(192); uint8_t* dmp1=(uint8_t*)malloc(192); uint8_t* dmq1=(uint8_t*)malloc(192); uint8_t* iqmp=(uint8_t*)malloc(192); uint8_t e[4]; ret_sgx=sgx_create_rsa_key_pair(384, 4, n, d, e, p, q, dmp1, dmq1, iqmp); free(n); free(d); free(p); free(q); free(dmp1); free(dmq1); free(iqmp); return ret_sgx; }