Cargo Features

pkcs1 has no features set by default.

[dependencies]
pkcs1 = { version = "0.8.0-rc.1", features = ["std", "alloc", "zeroize", "pem", "pkcs8"] }
std = alloc

Enables std of der

Affects traits::DecodeRsaPrivateKey.read_pkcs1_der_file, traits::DecodeRsaPublicKey.read_pkcs1_der_file, traits::EncodeRsaPrivateKey.write_pkcs1_der_file, traits::EncodeRsaPublicKey.write_pkcs1_der_file, traits::DecodeRsaPrivateKey.read_pkcs1_pem_file, traits::DecodeRsaPublicKey.read_pkcs1_pem_file, traits::EncodeRsaPrivateKey.write_pkcs1_pem_file, traits::EncodeRsaPublicKey.write_pkcs1_pem_file

alloc pem? std? = zeroize

Enables alloc of der and optional pkcs8

pkcs8:

optional dependencies

Affects private_key::OtherPrimeInfos, traits::EncodeRsaPrivateKey, traits::EncodeRsaPublicKey

zeroize alloc?

Enables zeroize of der

pem = alloc

Enables pem of der and optional pkcs8

Affects traits::DecodeRsaPrivateKey.from_pkcs1_pem, traits::DecodeRsaPublicKey.from_pkcs1_pem, traits::EncodeRsaPrivateKey.to_pkcs1_pem, traits::EncodeRsaPublicKey.to_pkcs1_pem, traits::DecodeRsaPrivateKey.read_pkcs1_pem_file, traits::DecodeRsaPublicKey.read_pkcs1_pem_file, traits::EncodeRsaPrivateKey.write_pkcs1_pem_file, traits::EncodeRsaPublicKey.write_pkcs1_pem_file

Features from optional dependencies

pkcs8 implicit feature

Affects pkcs1::ALGORITHM_OID, pkcs1::ALGORITHM_ID