Dave Rodgman d69da6c3c3 Improve PSA error return code
psa_key_derivation_output_key: prioritize BAD_STATE over NOT_PERMITTED

If psa_key_derivation_output_key() is called on an operation which hasn't been
set up or which has been aborted, return PSA_ERROR_BAD_STATE. Only return
PSA_ERROR_NOT_PERMITTED if the operation state is ok for
psa_key_derivation_input_bytes() or psa_key_derivation_output_bytes() but not
ok to output a key.

Ideally psa_key_derivation_output_key() would return PSA_ERROR_NOT_PERMITTED
only when psa_key_derivation_output_bytes() is possible, but this is clumsier
to implement.

Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
2021-11-16 16:03:31 +00:00
..
2021-09-27 16:22:08 +02:00
2021-03-10 12:52:37 +00:00
2021-06-28 09:24:07 +01:00
2021-10-25 22:15:20 +02:00
2021-08-19 09:55:41 +01:00
2021-10-21 11:33:37 +02:00
2021-10-25 13:16:04 +01:00
2021-06-17 21:46:29 +02:00
2021-09-27 16:22:08 +02:00
2021-10-25 10:41:29 +08:00
2021-10-25 10:41:29 +08:00
2021-06-25 12:46:40 +01:00
2021-09-27 16:34:58 +08:00
2021-06-08 16:45:41 +02:00
2021-08-19 09:31:55 +01:00
2021-06-28 09:24:07 +01:00
2021-06-16 10:34:25 +02:00
2021-04-07 12:45:35 +01:00
2021-03-29 14:20:18 +01:00
2021-04-07 12:45:35 +01:00
2021-03-29 14:20:18 +01:00
2021-04-07 12:45:35 +01:00
2021-04-07 12:45:35 +01:00
2021-08-19 09:31:55 +01:00
2021-06-16 10:34:25 +02:00
2021-03-10 12:52:37 +00:00
2021-06-28 09:24:07 +01:00
2021-06-08 16:45:41 +02:00
2021-04-15 11:19:47 +01:00
2021-09-08 22:04:13 +05:30
2020-11-25 13:10:50 +01:00
2021-10-08 16:28:32 +02:00
2021-11-16 16:03:31 +00:00
2021-08-19 09:31:55 +01:00
2021-07-08 12:46:26 +01:00
2021-08-19 09:31:55 +01:00
2021-08-19 09:31:55 +01:00
2021-08-19 09:56:47 +01:00
2021-11-09 09:28:25 +00:00
2021-11-10 03:12:11 +00:00
2021-11-09 10:17:21 +08:00
2021-08-31 22:54:27 +02:00
2021-11-11 06:46:35 +00:00
2021-11-11 06:46:35 +00:00
2021-11-11 06:46:35 +00:00
2021-06-28 09:28:33 +01:00