Crate pkcs1[][src]

Expand description

Pure Rust implementation of Public-Key Cryptography Standards (PKCS) #1:

RSA Cryptography Specifications Version 2.2 (RFC 8017)

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.51 at a minimum.

Re-exports

pub use der;

Structs

PKCS#1 RSA Private Keys as defined in RFC 8017 Appendix 1.2.

PKCS#1 RSA PRIVATE KEY document.

PKCS#1 RSA Public Keys as defined in RFC 8017 Appendix 1.1.

PKCS#1 RSA PUBLIC KEY document.

“Big” unsigned ASN.1 INTEGER type.

Enums

Error type

Line endings.

Version identifier for PKCS#1 documents as defined in RFC 8017 Appendix 1.2.

Traits

Parse an RsaPrivateKey from a PKCS#1-encoded document.

Parse a RsaPublicKey from a PKCS#1-encoded document.

Serialize a RsaPrivateKey to a PKCS#1 encoded document.

Serialize a RsaPublicKey to a PKCS#1-encoded document.

Type Definitions

Result type