#rsa-key #pkcs #key #pem

no-std pkcs1

Pure Rust implementation of Public-Key Cryptography Standards (PKCS) #1: RSA Cryptography Specifications Version 2.2 (RFC 8017)

20 releases

0.8.0-rc.1 Sep 6, 2024
0.8.0-rc.0 Jul 26, 2024
0.8.0-pre.0 Jan 8, 2024
0.7.5 Apr 24, 2023
0.0.0 Jun 12, 2020

#2791 in Cryptography

Download history 1169641/week @ 2025-01-28 1205447/week @ 2025-02-04 1329452/week @ 2025-02-11 1193425/week @ 2025-02-18 1147618/week @ 2025-02-25 2295561/week @ 2025-03-04 1808720/week @ 2025-03-11 2445079/week @ 2025-03-18 2043048/week @ 2025-03-25 1366855/week @ 2025-04-01 1372921/week @ 2025-04-08 985182/week @ 2025-04-15 979437/week @ 2025-04-22 904165/week @ 2025-04-29 1054731/week @ 2025-05-06 827955/week @ 2025-05-13

3,906,029 downloads per month
Used in 1,933 crates (22 directly)

Apache-2.0 OR MIT

785KB
17K SLoC

RustCrypto: PKCS#1 (RSA)

crate Docs Build Status Apache2/MIT licensed Rust Version Project Chat

Pure Rust implementation of Public-Key Cryptography Standards (PKCS) #1: RSA Cryptography Specifications Version 2.2 (RFC 8017).

Documentation

About

This crate supports encoding and decoding RSA private and public keys in either PKCS#1 DER (binary) or PEM (text) formats.

PEM encoded RSA private keys begin with:

-----BEGIN RSA PRIVATE KEY-----

PEM encoded RSA public keys begin with:

-----BEGIN RSA PUBLIC KEY-----

Minimum Supported Rust Version

This crate requires Rust 1.71 at a minimum.

We may change the MSRV in the future, but it will be accompanied by a minor version bump.

License

Licensed under either of:

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies