-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add CryptoAuthLib to Provider enumeration. #90
Add CryptoAuthLib to Provider enumeration. #90
Conversation
9d8cdd3
to
4d61b8f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello 👋
This looks good to me and I am happy to see you adding a new Parsec provider 🚀 Just added a small comment about the versioning, that I think we can do later.
Just to get a global view of what you are going to add, could you please describe your work a bit more here 😃? As in, what do you plan to do in which repos?
From my understanding, you are going to add a Parsec provider to communicate through a Rust wrapper to the C CryptoAuthLib library? Will it target a specific device or all the devices supported by this library? What are your plans for testing inside Parsec?
Also, if you have one other PR on parallaxsecond/parsec
, I think it would be nice to push it now as well, that would help to understand the big picture. From that PR, you can fetch this change with:
parsec-interface = { git = "https://github.com/RobertDrazkowskiGL/parsec-interface-rs", branch = "calib-integration" }
Sorry for all the questions! We will merge this, I am just asking on behalf of the Parsec community to know a bit more about what you are doing 👌
PS: ignore the Travis CI for now, we are going to disable it
Cargo.toml
Outdated
@@ -1,6 +1,6 @@ | |||
[package] | |||
name = "parsec-interface" | |||
version = "0.21.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think for now, you can keep the 0.21.0
version and we will use a git
dependency on the interface from parsec
and the Rust client to get the new commits, something like:
parsec-interface = { git = "https://github.com/parallaxsecond/parsec-interface-rs", rev = "commit-sha" }
Then when we decide to release a new version, we will replace that by the new one!
Hello
It was the very last thing added and obviously the one not needed at the moment.
You are right, I should have done it, I just did not know where is the good place for this kind of information.
It very much depends on CAL itself, unfortunately. E.g. there are four interfaces implemented (at least I tried to enable four of them) but they cannot be enabled altogether, the compilation fails. Thus only I2C is compiled in at the moment. Same thing applies to hardware (ATECC chips). At the moment we are sure the ATECC508a and ATECC608a can be compiled in at the same time, and we can call appropriate functions... But MicrochipTech announces ATECC608b should be used in new deployments. We'll see.
Understood. We (there are more people involved) will use it to clean the dependencies. As the whole parsec thing is being split, some initial pieces will come soon.
Then please let me use this as an opportunity to ask my very specific question. Should I simply amend the latest commit by removing the "bumped" version from Cargo.toml?
|
Thanks for your response!
That's a good point I will note down. As you are really the first contributor adding a Parsec provider, we do not have any special process for this, but we should.
Yep, that's fine! We are doing things similarly with our other providers.
Thanks for the explanation!
Yes absolutely, that would do it! |
Signed-off-by: Robert Drazkowski <[email protected]>
4d61b8f
to
8d942cd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Actually, I think it's fine to just merge it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Good to see the first step towards a new provider!
An interface extension: a new Parsec provider using ATECCx08 cryptochip via CryptoAuthentication Library.