[package]
name = "pkcs8"
version = "0.8.0"
description = """
Pure Rust implementation of Public-Key Cryptography Standards (PKCS) #8:
Private-Key Information Syntax Specification (RFC 5208), with additional
support for PKCS#8v2 asymmetric key packages (RFC 5958)
"""
authors = ["RustCrypto Developers"]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/RustCrypto/formats/tree/master/pkcs8"
categories = ["cryptography", "data-structures", "encoding", "no-std", "parser-implementations"]
keywords = ["crypto", "key", "pkcs", "private"]
readme = "README.md"
edition = "2021"
rust-version = "1.56"
[dependencies]
der = { version = "0.5", features = ["oid"], path = "../der" }
spki = { version = "0.5", path = "../spki" }
rand_core = { version = "0.6", optional = true, default-features = false }
pkcs5 = { version = "0.4", optional = true, path = "../pkcs5" }
subtle = { version = "2", optional = true, default-features = false }
zeroize = { version = "1", optional = true, default-features = false, features = ["alloc"] }
[dev-dependencies]
hex-literal = "0.3"
[features]
alloc = ["der/alloc", "spki/alloc", "zeroize"]
3des = ["encryption", "pkcs5/3des"]
des-insecure = ["encryption", "pkcs5/des-insecure"]
encryption = ["alloc", "pkcs5/alloc", "pkcs5/pbes2", "rand_core"]
pem = ["alloc", "der/pem", "spki/pem"]
rand = ["rand_core/std"]
sha1 = ["encryption", "pkcs5/sha1"]
std = ["alloc", "der/std", "spki/std"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]