-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This provider will interface with a PKCS 11 dynamic library to communicate with a PKCS 11 device. Add PKCS 11 configuration for the user to enter the path of the dynamic PKCS 11 library to load, the slot number where the device is and the user pin of that device. Removes provider-dependant information in the tests: they shoudl be generic no matter what provider is currently used. The PKCS 11 provider currently only supports RSA Key pair generation, importing and exporting public keys, signing and verifying with those RSA keys. Co-authored-by: Paul Howard <[email protected]> Signed-off-by: Hugues de Valon <[email protected]>
- Loading branch information
1 parent
54b8886
commit 69b918f
Showing
14 changed files
with
1,091 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
[package] | ||
name = "parsec" | ||
version = "0.1.0" | ||
authors = ["Ionut Mihalcea <[email protected]>", | ||
authors = ["Paul Howard <[email protected]>", | ||
"Ionut Mihalcea <[email protected]>", | ||
"Hugues de Valon <[email protected]>"] | ||
edition = "2018" | ||
|
||
|
@@ -10,7 +11,7 @@ name = "parsec" | |
path = "src/bin/main.rs" | ||
|
||
[dependencies] | ||
parsec-interface = { git = "https://github.com/parallaxsecond/parsec-interface-rs", tag = "0.2.1" } | ||
parsec-interface = { git = "https://github.com/parallaxsecond/parsec-interface-rs", tag = "0.3.0" } | ||
rand = "0.7.2" | ||
base64 = "0.10.1" | ||
uuid = "0.7.4" | ||
|
@@ -22,9 +23,15 @@ toml = "0.4.2" | |
serde = { version = "1.0", features = ["derive"] } | ||
env_logger = "0.7.1" | ||
log = { version = "0.4.8", features = ["serde"] } | ||
pkcs11 = { version = "0.4.0", optional = true } | ||
# Using a fork of the serde_asn1_der crate to have big integer support. Check https://github.com/KizzyCode/serde_asn1_der/issues/1 | ||
serde_asn1_der = { git = "https://github.com/Devolutions/serde_asn1_der", rev = "ec1035879034ac9f09f1242fb49ed04c9aecdcae", optional = true, features = ["extra_types"] } | ||
der-parser = "3.0.2" | ||
nom = "5.0.1" | ||
num-bigint-dig = "0.5" | ||
|
||
[dev-dependencies] | ||
parsec-client-test = { git = "https://github.com/parallaxsecond/parsec-client-test", tag = "0.1.6" } | ||
parsec-client-test = { git = "https://github.com/parallaxsecond/parsec-client-test", tag = "0.1.7" } | ||
num_cpus = "1.10.1" | ||
|
||
[build-dependencies] | ||
|
@@ -37,6 +44,6 @@ serde = { version = "1.0", features = ["derive"] } | |
mbed-crypto-version = "mbedcrypto-2.0.0" | ||
|
||
[features] | ||
default = ["mbed"] | ||
default = ["mbed", "pkcs11-provider"] | ||
mbed = [] | ||
|
||
pkcs11-provider = ["pkcs11", "serde_asn1_der"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.