#crypto #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)

18 releases

0.8.0-pre.0 Jan 8, 2024
0.7.5 Apr 24, 2023
0.7.1 Mar 6, 2023
0.4.1 Oct 10, 2022
0.0.0 Jun 12, 2020

#2267 in Cryptography

Download history 275479/week @ 2023-10-27 299250/week @ 2023-11-03 317525/week @ 2023-11-10 296804/week @ 2023-11-17 275467/week @ 2023-11-24 313671/week @ 2023-12-01 293356/week @ 2023-12-08 277238/week @ 2023-12-15 156831/week @ 2023-12-22 232191/week @ 2023-12-29 322382/week @ 2024-01-05 322536/week @ 2024-01-12 355357/week @ 2024-01-19 346562/week @ 2024-01-26 347780/week @ 2024-02-02 276087/week @ 2024-02-09

1,391,081 downloads per month
Used in 909 crates (11 directly)

Apache-2.0 OR MIT

690KB
15K 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