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

no-std pkcs1

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

19 releases

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

#2363 in Cryptography

Download history 372601/week @ 2024-04-05 402666/week @ 2024-04-12 407425/week @ 2024-04-19 401801/week @ 2024-04-26 398285/week @ 2024-05-03 436236/week @ 2024-05-10 454966/week @ 2024-05-17 443107/week @ 2024-05-24 488279/week @ 2024-05-31 467288/week @ 2024-06-07 436476/week @ 2024-06-14 456333/week @ 2024-06-21 416794/week @ 2024-06-28 443320/week @ 2024-07-05 462567/week @ 2024-07-12 385153/week @ 2024-07-19

1,801,351 downloads per month
Used in 1,266 crates (12 directly)

Apache-2.0 OR MIT

735KB
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