{"id":22923704,"url":"https://github.com/mithril-security/rsa-sgx","last_synced_at":"2025-07-06T08:03:05.899Z","repository":{"id":95695374,"uuid":"428731705","full_name":"mithril-security/rsa-sgx","owner":"mithril-security","description":"Port RSA to Teaclave Rust SGX SDK and Xargo (add custom feature sgx_std for std error without pkcs1 fs access)","archived":false,"fork":false,"pushed_at":"2021-11-16T17:17:17.000Z","size":279,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"bump-deps","last_synced_at":"2025-04-01T14:49:55.304Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mithril-security.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-16T16:27:44.000Z","updated_at":"2022-10-31T23:22:33.000Z","dependencies_parsed_at":"2023-04-12T10:40:21.282Z","dependency_job_id":null,"html_url":"https://github.com/mithril-security/rsa-sgx","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/mithril-security/rsa-sgx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mithril-security%2Frsa-sgx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mithril-security%2Frsa-sgx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mithril-security%2Frsa-sgx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mithril-security%2Frsa-sgx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mithril-security","download_url":"https://codeload.github.com/mithril-security/rsa-sgx/tar.gz/refs/heads/bump-deps","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mithril-security%2Frsa-sgx/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263868203,"owners_count":23522315,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-14T08:16:23.808Z","updated_at":"2025-07-06T08:03:05.893Z","avatar_url":"https://github.com/mithril-security.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RSA\n\n[![crates.io][crate-image]][crate-link]\n[![Documentation][doc-image]][doc-link]\n[![Build Status][build-image]][build-link]\n![minimum rustc 1.44][msrv-image]\n[![Project Chat][chat-image]][chat-link]\n[![dependency status][deps-image]][deps-link]\n\nA portable RSA implementation in pure Rust.\n\n:warning: **WARNING:** This crate has been audited by a 3rd party, but a full blog post with the results and the updates made since the audit has not been officially released yet. See [#60](https://github.com/RustCrypto/RSA/issues/60) for more information.\n\n## Example\n\n```rust\nuse rsa::{PublicKey, RSAPrivateKey, PaddingScheme};\nuse rand::rngs::OsRng;\n\nlet mut rng = OsRng;\nlet bits = 2048;\nlet priv_key = RSAPrivateKey::new(\u0026mut rng, bits).expect(\"failed to generate a key\");\nlet pub_key = RSAPublicKey::from(\u0026priv_key);\n\n// Encrypt\nlet data = b\"hello world\";\nlet enc_data = pub_key.encrypt(\u0026mut rng, PaddingScheme::new_pkcs1v15(), \u0026data[..]).expect(\"failed to encrypt\");\nassert_ne!(\u0026data[..], \u0026enc_data[..]);\n\n// Decrypt\nlet dec_data = priv_key.decrypt(PaddingScheme::new_pkcs1v15(), \u0026enc_data).expect(\"failed to decrypt\");\nassert_eq!(\u0026data[..], \u0026dec_data[..]);\n```\n\n## Status\n\nCurrently at Phase 1 (v) :construction:.\n\nThere will be three phases before `1.0` :ship: can be released.\n\n1. :construction:  Make it work\n    - [x] Prime generation :white_check_mark:\n    - [x] Key generation :white_check_mark:\n    - [x] PKCS1v1.5: Encryption \u0026 Decryption :white_check_mark:\n    - [x] PKCS1v1.5: Sign \u0026 Verify :white_check_mark:\n    - [ ] PKCS1v1.5 (session key): Encryption \u0026 Decryption\n    - [x] OAEP: Encryption \u0026 Decryption\n    - [x] PSS: Sign \u0026 Verify\n    - [x] Key import \u0026 export\n2. :rocket: Make it fast\n    - [x] Benchmarks :white_check_mark:\n    - [ ] compare to other implementations :construction:\n    - [ ] optimize :construction:\n3. :lock: Make it secure\n    - [ ] Fuzz testing\n    - [ ] Security Audits\n\n\n## Minimum Supported Rust Version (MSRV)\n\nAll crates in this repository support Rust 1.44 or higher. In future\nminimally supported version of Rust can be changed, but it will be done with\na minor version bump.\n\n## License\n\nLicensed under either of\n\n * [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)\n * [MIT license](http://opensource.org/licenses/MIT)\n\nat your option.\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n\n[//]: # (badges)\n\n[crate-image]: https://img.shields.io/crates/v/rsa.svg\n[crate-link]: https://crates.io/crates/rsa\n[doc-image]: https://docs.rs/rsa/badge.svg\n[doc-link]: https://docs.rs/rsa\n[build-image]: https://github.com/rustcrypto/RSA/workflows/CI/badge.svg\n[build-link]: https://github.com/RustCrypto/RSA/actions?query=workflow%3ACI+branch%3Amaster\n[msrv-image]: https://img.shields.io/badge/rustc-1.44+-blue.svg\n[chat-image]: https://img.shields.io/badge/zulip-join_chat-blue.svg\n[chat-link]: https://rustcrypto.zulipchat.com/#narrow/stream/260047-RSA\n[deps-image]: https://deps.rs/repo/github/RustCrypto/RSA/status.svg\n[deps-link]: https://deps.rs/repo/github/RustCrypto/RSA\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmithril-security%2Frsa-sgx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmithril-security%2Frsa-sgx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmithril-security%2Frsa-sgx/lists"}