#rsa-key #private-key #rsa #key #pem #codec #pkcs

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

#2377 in Cryptography

Download history 742794/week @ 2024-11-16 618800/week @ 2024-11-23 678300/week @ 2024-11-30 824797/week @ 2024-12-07 834899/week @ 2024-12-14 281341/week @ 2024-12-21 411667/week @ 2024-12-28 854423/week @ 2025-01-04 1032952/week @ 2025-01-11 972919/week @ 2025-01-18 1145890/week @ 2025-01-25 1211479/week @ 2025-02-01 1375124/week @ 2025-02-08 1140997/week @ 2025-02-15 1164991/week @ 2025-02-22 1713222/week @ 2025-03-01

5,601,648 downloads per month
Used in 1,798 crates (19 directly)

Apache-2.0 OR MIT

755KB
16K 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