@@ -18,10 +18,12 @@ resolver = "1" # Hack to enable the `custom` feature of `getrandom`
1818# Ensure all dependencies + feats are mapped to crate features for correct usage
1919# default features often have std breaking no_std and potentially other unwanted
2020[dependencies ]
21+ aes = { version = " 0.8.4" , default-features = false , optional = true }
2122aead = { version = " 0.5.2" , default-features = false , optional = true }
2223aes-gcm = { version = " 0.10.3" , default-features = false , features = [
2324 " aes" ,
2425], optional = true }
26+ ccm = { version = " 0.5.0" , optional = true , default-features = false }
2527chacha20poly1305 = { version = " 0.10.1" , default-features = false , optional = true }
2628crypto-common = { version = " 0.1.6" , default-features = false }
2729der = { version = " 0.7.9" , default-features = false , optional = true }
@@ -84,7 +86,7 @@ std = [
8486 " ed25519-dalek?/std" ,
8587 " pkcs1?/std" ,
8688]
87- alloc = [" webpki?/alloc" , " ecdsa?/alloc" , " signature?/alloc" ]
89+ alloc = [" webpki?/alloc" , " ecdsa?/alloc" , " signature?/alloc" , " ccm?/alloc " ]
8890zeroize = [" ed25519-dalek?/zeroize" , " x25519-dalek?/zeroize" ]
8991
9092nist = []
@@ -95,7 +97,7 @@ ed25519 = ["dep:ed25519-dalek"]
9597
9698verify = [" dep:webpki" ]
9799
98- ecdsa = [" dep:ecdsa" , " verify" , " signature" , " rand" ]
100+ ecdsa = [" dep:ecdsa" , " verify" , " signature" , " rand" , " der " ]
99101ecdsa-p256 = [" p256" , " p256/ecdsa" , " ecdsa" ]
100102ecdsa-p384 = [" p384" , " p384/ecdsa" , " ecdsa" ]
101103ecdsa-p521 = [" p521" , " p521/ecdsa" , " ecdsa" ]
@@ -118,9 +120,10 @@ rsa-pss = ["rsa"]
118120rsa-full = [" rsa-pkcs1" , " rsa-pss" ]
119121
120122aead = [" dep:aead" ]
121- aes-gcm = [" dep:aes-gcm" , " aead" ]
123+ aes-gcm = [" aes" , " dep:aes-gcm" , " aead" ]
124+ aes-ccm = [" aes" , " dep:ccm" , " aead" ]
122125chacha20poly1305 = [" dep:chacha20poly1305" , " aead" ]
123- aead-full = [" aes-gcm" , " chacha20poly1305" ]
126+ aead-full = [" aes-gcm" , " aes-ccm " , " chacha20poly1305" ]
124127
125128# TODO
126129hash = []
@@ -146,3 +149,4 @@ pkcs8 = [
146149
147150signature = [" dep:signature" ]
148151rand = [" dep:rand_core" , " signature?/rand_core" ]
152+ aes = [" dep:aes" ]
0 commit comments