-
Notifications
You must be signed in to change notification settings - Fork 16
Add final single part ops #61
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 final single part ops #61
Conversation
Also removed multi-part ops from single part ops table Signed-off-by: Samuel Bailey <[email protected]>
Fixed verify hash typo Signed-off-by: Samuel Bailey <[email protected]>
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!! Everything look code for me, small comment about PurgeKey.
@@ -0,0 +1,48 @@ | |||
# PsaPurgeKey |
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.
Similarly to the comment on your PR on parsec-operations
, I think it is best to remove it from now.
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.
🧹
@@ -37,7 +37,7 @@ such signature algorithm: Raw PKCS#1 v1.5 signature. | |||
**Note:** To perform a hash-and-sign algorithm, the hash must be calculated before passing it to | |||
this function. This could be done with the operation PsaHashCompute or with a multi-part hash | |||
operation. Those operations are not yet implemented. Alternatively, to hash and sign a message in a | |||
single call, you could use PsaSignMessage (not yet implemented). | |||
single call, you could use PsaSignMessage. |
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 for that 👍
| Algorithm | Rust client | | ||
|-----------|-------------| | ||
| Hmac | ❌ | | ||
| CbcMac | ❌ | | ||
| Cmac | ❌ | |
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.
For things like these algorithms, where the algorithms are supported, but the operations that use them are not, should they be ticks instead?
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 would say no personally. I think this page could be presented in a better way. The first table kind of assume that the operation is fully supported when we only really support one specific algorithm.
Ideally, we would have one massive matrix of combination of providers X combination of operations X combinations of their input parameters.
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.
And now that all single-part operations are defined, we could think of generating such table programatically, nightly, by either defining new operations that would give us the elvel of support for each operation OR by making test for each one of them. That could be a cool internship project 😉
cd2d6ed
to
20250b6
Compare
This should pass CI now the new protobuf contracts are in master. |
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, thank!
The link checker is palying us tricks. I think it's worth investigating why it fails, or using another one. Maybe the GitHub links do some kind of weird redirection that it does not support?
In any case, happy to merge this even if hte CI fails.
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!! That is a lot of changes 😮
@@ -0,0 +1,36 @@ | |||
# PsaSignMessage | |||
|
|||
Sign a message with a private key. Opcode: 23 (`0x0017`) |
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.
PsaMacVerify
and this one have the same opcode!
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.
👀
src/service_api_coverage.md
Outdated
| Cfb | ❌ | ❌ | ❌ | | ||
| Ofb | ❌ | ❌ | ❌ | | ||
| Xts | ❌ | ❌ | ❌ | | ||
| EbcNoPadding | ❌ | ❌ | ❌ | |
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.
| EbcNoPadding | ❌ | ❌ | ❌ | | |
| EcbNoPadding | ❌ | ❌ | ❌ | |
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.
This one and the one below also apply to the client coverage page
src/service_api_coverage.md
Outdated
| Algorithm | Mbed Crypto provider | PKCS 11 provider | TPM 2.0 provider | | ||
|--------------|----------------------|------------------|------------------| | ||
| StreamCipher | ❌ | ❌ | ❌ | | ||
| Crt | ❌ | ❌ | ❌ | |
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.
| Crt | ❌ | ❌ | ❌ | | |
| Ctr | ❌ | ❌ | ❌ | |
74778e0
to
39ef2af
Compare
Signed-off-by: Samuel Bailey <[email protected]>
39ef2af
to
1e1cd61
Compare
Added missing documentation for all single part operations (excluding copy - requires discussion on implementation for Parsec)