blob: eaa20b99698f89c71b19399ef20d2db88ae83a33 [file] [log] [blame]
[package]
name = "sec1"
version = "0.7.3"
description = """
Pure Rust implementation of SEC1: Elliptic Curve Cryptography encoding formats
including ASN.1 DER-serialized private keys as well as the
Elliptic-Curve-Point-to-Octet-String encoding
"""
authors = ["RustCrypto Developers"]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/RustCrypto/formats/tree/master/sec1"
categories = ["cryptography", "data-structures", "encoding", "no-std", "parser-implementations"]
keywords = ["crypto", "key", "elliptic-curve", "secg"]
readme = "README.md"
edition = "2021"
rust-version = "1.65"
[dependencies]
base16ct = { version = "0.2", optional = true, default-features = false }
der = { version = "0.7", optional = true, features = ["oid"] }
generic-array = { version = "0.14.7", optional = true, default-features = false }
pkcs8 = { version = "0.10", optional = true, default-features = false }
serdect = { version = "0.2", optional = true, default-features = false, features = ["alloc"] }
subtle = { version = "2", optional = true, default-features = false }
zeroize = { version = "1", optional = true, default-features = false }
[dev-dependencies]
hex-literal = "0.4"
tempfile = "3"
[features]
default = ["der", "point"]
alloc = ["der?/alloc", "pkcs8?/alloc", "zeroize?/alloc"]
std = ["alloc", "der?/std"]
der = ["dep:der", "zeroize"]
pem = ["alloc", "der/pem", "pkcs8/pem"]
point = ["dep:base16ct", "dep:generic-array"]
serde = ["dep:serdect"]
zeroize = ["dep:zeroize", "der?/zeroize"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]