-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
any samples for this repo? #4
Comments
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 👍 but Obviously I failed. 😂 |
You may take a look at: https://github.com/intel/linux-sgx/tree/master/sdk/tlibcrypto Thanks, |
@akryeem-INTC 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. Regards, |
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, |
The text was updated successfully, but these errors were encountered: