diff options
Diffstat (limited to 'components/service/crypto/client/cpp/crypto_client.h')
-rw-r--r-- | components/service/crypto/client/cpp/crypto_client.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/components/service/crypto/client/cpp/crypto_client.h b/components/service/crypto/client/cpp/crypto_client.h index 42085bed8..68d80ee58 100644 --- a/components/service/crypto/client/cpp/crypto_client.h +++ b/components/service/crypto/client/cpp/crypto_client.h @@ -21,6 +21,7 @@ public: virtual ~crypto_client(); int err_rpc_status() const; + struct service_info get_service_info() const; /* Key lifecycle methods */ virtual psa_status_t generate_key( @@ -89,6 +90,8 @@ public: uint8_t *output, size_t output_size) = 0; /* Hash methods */ + virtual size_t hash_max_update_size() const = 0; + virtual psa_status_t hash_setup( uint32_t *op_handle, psa_algorithm_t alg) = 0; @@ -101,6 +104,17 @@ public: uint32_t op_handle, uint8_t *hash, size_t hash_size, size_t *hash_length) = 0; + virtual psa_status_t hash_abort( + uint32_t op_handle) = 0; + + virtual psa_status_t hash_verify( + uint32_t op_handle, + const uint8_t *hash, size_t hash_length) = 0; + + virtual psa_status_t hash_clone( + uint32_t source_op_handle, + uint32_t *target_op_handle) = 0; + protected: crypto_client(); crypto_client(struct rpc_caller *caller); |