Skip to content
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

at_c: atchops_rsa_generate #74

Closed
Tracked by #1325
JeremyTubongbanua opened this issue Jan 22, 2024 · 0 comments · Fixed by #409
Closed
Tracked by #1325

at_c: atchops_rsa_generate #74

JeremyTubongbanua opened this issue Jan 22, 2024 · 0 comments · Fixed by #409
Assignees

Comments

@JeremyTubongbanua
Copy link
Member

JeremyTubongbanua commented Jan 22, 2024

Implement this function in atchops - rsa.c to generate an RSA 2048 public/private keypair

This function returns int for error handling; 0 for success, non-zero implies failure

As to how to do this: one hint is to explore and use MbedTLS and its random/entropy libraries to potentially do this.

int atchops_rsa_generate(atchops_rsakey_publickey *publickey, atchops_rsakey_privatekey *privatekey, const unsigned int keysize)
{
    return 1; // TODO: implement
}

Also write tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants