Closed eaglesharkmayonnaise closed 5 years ago
ping @yuriynat-int @VasiliyR
Hello, yes we are planning to add samples. You provided a list of ciphers you would like to have samples - thank you. What kind of the samples you would like to have?
rsa 👍 I have tried porting from the following projects:
but Obviously I failed. 😂
You may take a look at: https://github.com/intel/linux-sgx/tree/master/sdk/tlibcrypto It has crypto operations implemented in both IPP and SgxSSL (OpenSSL APIs). It could help.
Thanks, Alaa
@akryeem-INTC
yes i already tried this. and I have modified it and made it simple enough. But I don't know how to pass parameters.
ippctest.zip
password:123.
I hope to have a simpler api, such as:
void rsa_init();
// Of course we can set the length, 2048/3072/4096 etc.
bool get_public_private_key(char* publicKey, char* privateKey);
const char* get_encrypt_buffer(const char* publicKey, const char* Buffer);
const char* get_decrypt_buffer(const char* privateKey, const char* Buffer);
so we can do this:
int main() {
char buf = "this is message test"
rsa_init();
char pubKey[100000];
char prvKey[100000];
get_public_private_key(pubKey, prvKey);
auto cipherText = get_encrypt_buffer(pubKey, buf);
auto plaintext = get_decrypt_buffer(prvKey, cipherText);
printf_s("%s\n",plaintext);
}
Hi @xoraxrax,
Sorry for the late reply. We're working on examples and plan to publish several of them (including RSA) next week or so. There are plans to extend the functionality that is covered by examples even more later. Hopefully it is still actual for you.
Regards, Andrey
Hi @xoraxrax, all,
We have added several examples for RSA and AES, and we plan to add more examples later. Should you have any feedback or suggestions which ones you want to see here first, feel free to ask.
Regards, Andrey