mbedtls_psa_sign_hash_start() function
Start 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.
attributes
The attributes of the key to use for the operation.
key_buffer
The buffer containing the key context.
key_buffer_size
Size of the \p key_buffer buffer in bytes.
alg
A signature algorithm that is compatible with the type of the key.
hash
The hash or message to sign.
hash_length
Size of the \p hash buffer in bytes.
Return value
#PSA_SUCCESS The operation started successfully - call \c psa_sign_hash_complete() with the same context to complete the operation #PSA_ERROR_INVALID_ARGUMENT An unsupported, incorrectly formatted or incorrect type of key was used. #PSA_ERROR_NOT_SUPPORTED Either no internal interruptible operations are currently supported, or the key type is currently unsupported. #PSA_ERROR_INSUFFICIENT_MEMORY There was insufficient memory to load the key representation.
Notes
The signature of this function is that of a PSA driver sign_hash_start entry point. This function behaves as a sign_hash_start entry point as defined in the PSA driver interface specification for transparent drivers.
mbedtls_psa_sign_hash_start() is called by 1 function:
![]()
mbedtls_psa_sign_hash_start()
mbedtls_psa_sign_hash_start() reads 1 variable:
![]()
mbedtls_psa_sign_hash_start()