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

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

#2186 in Cryptography

Download history 345515/week @ 2024-01-22 360362/week @ 2024-01-29 336828/week @ 2024-02-05 335792/week @ 2024-02-12 333551/week @ 2024-02-19 371085/week @ 2024-02-26 385501/week @ 2024-03-04 361021/week @ 2024-03-11 361443/week @ 2024-03-18 351906/week @ 2024-03-25 374725/week @ 2024-04-01 374232/week @ 2024-04-08 404204/week @ 2024-04-15 412056/week @ 2024-04-22 398463/week @ 2024-04-29 400696/week @ 2024-05-06

1,631,532 downloads per month
Used in 1,122 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