mbedtls_psa_cipher_finish() function
Finish encrypting or decrypting a message in a cipher operation.
Arguments
operation
Active cipher operation.
output
Buffer where the output is to be written.
output_size
Size of the \p output buffer in bytes.
output_length
On success, the number of bytes that make up the returned output.
Return value
#PSA_SUCCESS \emptydescription #PSA_ERROR_INVALID_ARGUMENT The total input size passed to this operation is not valid for this particular algorithm. For example, the algorithm is a based on block cipher and requires a whole number of blocks, but the total input size is not a multiple of the block size. #PSA_ERROR_INVALID_PADDING This is a decryption operation for an algorithm that includes padding, and the ciphertext does not contain valid padding. #PSA_ERROR_BUFFER_TOO_SMALL The size of the \p output buffer is too small. #PSA_ERROR_INSUFFICIENT_MEMORY \emptydescription
Notes
The signature of this function is that of a PSA driver cipher_finish entry point. This function behaves as a cipher_finish entry point as defined in the PSA driver interface specification for transparent drivers.
mbedtls_psa_cipher_finish() is called by 3 functions and calls 3 functions:
![]()
mbedtls_psa_cipher_finish()
mbedtls_psa_cipher_finish() reads 4 variables:
![]()
mbedtls_psa_cipher_finish()