#rsa-key #public-key-cryptography #private-key #pem #pkcs #rsa

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

#2147 in Cryptography

Download history 695274/week @ 2024-12-02 835188/week @ 2024-12-09 816753/week @ 2024-12-16 280979/week @ 2024-12-23 425977/week @ 2024-12-30 892472/week @ 2025-01-06 1039015/week @ 2025-01-13 985989/week @ 2025-01-20 1146778/week @ 2025-01-27 1208084/week @ 2025-02-03 1397130/week @ 2025-02-10 1124417/week @ 2025-02-17 1156941/week @ 2025-02-24 2178346/week @ 2025-03-03 1867366/week @ 2025-03-10 2001572/week @ 2025-03-17

7,260,771 downloads per month
Used in 1,830 crates (20 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