mbedtls_psa_sign_hash_complete() function
Continue and eventually complete the action of signing a hash or short message with a private key, in an interruptible manner.
Arguments
operation
The \c mbedtls_psa_sign_hash_interruptible_operation_t to use. This must be initialized first.
signature
Buffer where the signature is to be written.
signature_size
Size of the \p signature buffer in bytes. This must be appropriate for the selected algorithm and key.
signature_length
On success, the number of bytes that make up the returned signature value.
Return value
#PSA_SUCCESS Operation completed successfully #PSA_OPERATION_INCOMPLETE Operation was interrupted due to the setting of \c psa_interruptible_set_max_ops(), there is still work to be done, please call this function again with the same operation object. #PSA_ERROR_BUFFER_TOO_SMALL The size of the \p signature buffer is too small. You can determine a sufficient buffer size by calling #PSA_SIGN_OUTPUT_SIZE(\c key_type, \c key_bits, \p alg) where \c key_type and \c key_bits are the type and bit-size respectively of \p key. #PSA_ERROR_NOT_SUPPORTED \emptydescription #PSA_ERROR_INVALID_ARGUMENT \emptydescription #PSA_ERROR_INSUFFICIENT_MEMORY \emptydescription #PSA_ERROR_CORRUPTION_DETECTED \emptydescription #PSA_ERROR_INSUFFICIENT_ENTROPY \emptydescription
Notes
The signature of this function is that of a PSA driver sign_hash_complete entry point. This function behaves as a sign_hash_complete entry point as defined in the PSA driver interface specification for transparent drivers.
mbedtls_psa_sign_hash_complete() is called by 1 function:
![]()
mbedtls_psa_sign_hash_complete()
mbedtls_psa_sign_hash_complete():
![]()
mbedtls_psa_sign_hash_complete()