Cargo Features

pkcs1 has no features set by default.

[dependencies]
pkcs1 = { version = "0.8.0-rc.3", features = ["std", "alloc", "pem", "zeroize"] }
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

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

pem = alloc

Enables pem of der

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

zeroize alloc?

Enables zeroize of der