Refactor the PKCS11 CryptoCanDo implementation #541
Labels
code health
Issues concerning overall code quality, safety and best practice
enhancement
New feature or request
small
Effort label
Milestone
This issue covers a cleanup of the implementation of
CryptoCanDo
in the PKCS11 provider. Some comments from #426 :methods on types can be called directly on
self
, so for exampleProvider::import_check(&self, attributes)
can be replaced withself.import_check(attributes)
.use_check
is partially implemented incan_do_crypto_internal
- thematch
arm that covers the use verification does a check before calling the method, which could be moved inside the methodis the last return from
can_do_crypto_internal
needed if thematch
before it is exhaustive?The text was updated successfully, but these errors were encountered: