Lines Matching refs:local_output
9121 psa_crypto_local_output_t *local_output) in psa_crypto_local_output_alloc() argument
9123 *local_output = PSA_CRYPTO_LOCAL_OUTPUT_INIT; in psa_crypto_local_output_alloc()
9128 local_output->buffer = mbedtls_calloc(output_len, 1); in psa_crypto_local_output_alloc()
9129 if (local_output->buffer == NULL) { in psa_crypto_local_output_alloc()
9134 local_output->length = output_len; in psa_crypto_local_output_alloc()
9135 local_output->original = output; in psa_crypto_local_output_alloc()
9140 psa_status_t psa_crypto_local_output_free(psa_crypto_local_output_t *local_output) in psa_crypto_local_output_free() argument
9144 if (local_output->buffer == NULL) { in psa_crypto_local_output_free()
9145 local_output->length = 0; in psa_crypto_local_output_free()
9148 if (local_output->original == NULL) { in psa_crypto_local_output_free()
9153 status = psa_crypto_copy_output(local_output->buffer, local_output->length, in psa_crypto_local_output_free()
9154 local_output->original, local_output->length); in psa_crypto_local_output_free()
9159 mbedtls_free(local_output->buffer); in psa_crypto_local_output_free()
9160 local_output->buffer = NULL; in psa_crypto_local_output_free()
9161 local_output->length = 0; in psa_crypto_local_output_free()