@@ -19,6 +19,7 @@ default = ["crypto_mbedtls"]
19
19
crypto_openssl = [" openssl" , " foreign-types" , " hmac" , " sha2" ]
20
20
crypto_mbedtls = [" mbedtls" ]
21
21
crypto_esp_mbedtls = [" esp-idf-sys" ]
22
+ crypto_rustcrypto = [" sha2" , " hmac" , " pbkdf2" , " hkdf" , " aes" , " ccm" , " p256" , " elliptic-curve" , " crypto-bigint" , " x509-cert" ]
22
23
23
24
[dependencies ]
24
25
boxslab = { path = " ../boxslab" }
@@ -34,11 +35,6 @@ log = { version = "0.4.17", features = ["max_level_debug", "release_max_level_de
34
35
env_logger = " 0.10.0"
35
36
rand = " 0.8.5"
36
37
esp-idf-sys = { version = " 0.32" , features = [" binstart" ], optional = true }
37
- openssl = { git = " https://github.com/sfackler/rust-openssl" , optional = true }
38
- foreign-types = { version = " 0.3.2" , optional = true }
39
- sha2 = { version = " 0.9.9" , optional = true }
40
- hmac = { version = " 0.11.0" , optional = true }
41
- mbedtls = { git = " https://github.com/fortanix/rust-mbedtls" , optional = true }
42
38
subtle = " 2.4.1"
43
39
colored = " 2.0.0"
44
40
smol = " 1.3.0"
@@ -47,6 +43,22 @@ safemem = "0.3.3"
47
43
chrono = { version = " 0.4.23" , default-features = false , features = [" clock" , " std" ] }
48
44
async-channel = " 1.8"
49
45
46
+ # crypto
47
+ openssl = { git = " https://github.com/sfackler/rust-openssl" , optional = true }
48
+ foreign-types = { version = " 0.3.2" , optional = true }
49
+ mbedtls = { git = " https://github.com/fortanix/rust-mbedtls" , optional = true }
50
+ sha2 = { version = " 0.10" , default-features = false , optional = true }
51
+ hmac = { version = " 0.12" , optional = true }
52
+ pbkdf2 = { version = " 0.12" , optional = true }
53
+ hkdf = { version = " 0.12" , optional = true }
54
+ aes = { version = " 0.8" , optional = true }
55
+ ccm = { version = " 0.5" , default-features = false , features = [" alloc" ], optional = true }
56
+ p256 = { version = " 0.13.0" , default-features = false , features = [" arithmetic" , " ecdh" , " ecdsa" ], optional = true }
57
+ elliptic-curve = { version = " 0.13.2" , optional = true }
58
+ crypto-bigint = { version = " 0.4" , default-features = false , optional = true }
59
+ # Note: requires std
60
+ x509-cert = { version = " 0.2.0" , default-features = false , features = [" pem" , " std" ], optional = true }
61
+
50
62
# to compute the check digit
51
63
verhoeff = " 1"
52
64
0 commit comments