Bence Szépkúti
08f34656cb
Return the same error in multipart and single shot AEAD
...
psa_aead_encrypt_setup() and psa_aead_decrypt_setup() were returning
PSA_ERROR_INVALID_ARGUMENT, while the same failed checks were producing
PSA_ERROR_NOT_SUPPORTED if they happened in psa_aead_encrypt() or
psa_aead_decrypt().
The PSA Crypto API 1.1 spec will specify PSA_ERROR_INVALID_ARGUMENT
in the case that the supplied algorithm is not an AEAD one.
Also move these shared checks to a helper function, to reduce code
duplication and ensure that the functions remain in sync.
Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
2022-01-07 19:36:07 +01:00
..
2021-12-18 13:29:10 +05:30
2021-09-27 16:22:08 +02:00
2021-06-28 09:24:07 +01:00
2021-08-19 09:55:42 +01:00
2021-08-19 09:56:47 +01:00
2021-11-26 17:20:02 +01:00
2021-12-06 17:50:53 +00:00
2021-09-22 18:31:35 +01:00
2021-08-19 09:55:41 +01:00
2021-10-21 11:33:37 +02:00
2021-08-19 09:56:47 +01:00
2021-08-19 09:56:47 +01:00
2021-03-25 14:25:46 +01:00
2021-10-27 10:42:31 +02:00
2021-06-28 09:24:07 +01:00
2021-12-13 17:01:25 +01:00
2021-12-19 13:37:37 +05:30
2021-10-28 10:26:13 +08:00
2021-11-26 17:25:14 +01:00
2021-11-26 17:25:14 +01:00
2021-11-26 17:25:14 +01:00
2021-08-23 11:52:28 +01:00
2021-06-17 21:46:29 +02:00
2021-09-27 16:22:08 +02:00
2021-08-19 09:56:47 +01:00
2021-12-10 13:47:55 +01:00
2021-12-10 13:47:55 +01:00
2021-06-25 00:46:22 +02:00
2021-08-23 11:52:28 +01:00
2021-06-25 12:46:40 +01:00
2021-06-28 09:24:07 +01:00
2021-06-03 18:10:04 +02:00
2021-09-27 16:34:58 +08:00
2021-06-28 09:28:33 +01:00
2021-06-28 09:28:33 +01:00
2021-06-18 16:35:58 +01:00
2021-11-22 22:22:37 +01:00
2021-06-08 16:45:41 +02:00
2021-12-19 13:37:37 +05:30
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-12-10 13:47:55 +01:00
2021-03-29 14:20:18 +01:00
2021-12-10 13:47:55 +01:00
2021-04-07 12:45:35 +01:00
2021-06-28 09:28:33 +01:00
2021-11-24 10:44:13 +01:00
2021-06-16 10:34:25 +02:00
2021-06-28 09:24:07 +01:00
2021-06-08 16:45:41 +02:00
2021-06-25 00:46:22 +02:00
2021-06-29 09:43:17 +02:00
2021-06-25 00:46:22 +02:00
2021-04-15 11:19:47 +01:00
2021-12-02 18:03:12 +00:00
2021-08-31 13:05:12 +02:00
2021-04-21 12:31:43 +02:00
2021-07-13 12:23:12 +02:00
2021-08-19 09:57:41 +01:00
2021-12-09 14:49:42 +01:00
2021-09-28 11:16:27 +01:00
2021-12-14 10:58:18 +01:00
2021-12-14 10:58:18 +01:00
2021-06-17 11:43:58 +02:00
2021-09-08 22:04:13 +05:30
2021-12-18 10:51:52 +05:30
2021-12-06 07:50:27 +01:00
2021-12-06 07:50:27 +01:00
2021-12-06 07:50:27 +01:00
2021-12-06 07:50:27 +01:00
2021-06-28 09:24:07 +01:00
2021-12-06 07:50:27 +01:00
2021-12-06 07:50:27 +01:00
2021-12-06 07:50:27 +01:00
2021-12-06 07:50:27 +01:00
2021-06-28 09:24:07 +01:00
2021-09-20 22:20:16 +02:00
2021-04-01 14:05:41 +02:00
2021-08-19 09:31:55 +01:00
2022-01-07 19:36:07 +01:00
2021-08-19 09:57:41 +01:00
2021-08-19 09:31:55 +01:00
2021-06-28 09:24:07 +01:00
2021-12-13 12:37:55 +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-05-14 14:55:15 +01:00
2021-12-10 13:47:55 +01:00
2021-12-03 18:55:33 +01:00
2021-12-13 12:35:08 +01:00
2021-12-16 10:04:58 +01:00
2021-12-10 13:47:55 +01:00
2021-12-13 10:51:27 +00:00
2021-12-03 18:55:33 +01:00
2021-08-31 22:54:27 +02:00
2021-12-15 12:56:54 +01:00
2021-12-10 13:47:55 +01:00
2021-12-10 13:47:55 +01:00
2021-12-02 06:36:27 +00:00
2021-12-15 12:56:54 +01:00
2021-12-13 14:38:40 +01:00
2021-06-28 09:28:33 +01:00
2021-06-28 09:28:33 +01:00
2021-04-28 17:31:55 +01:00
2021-06-23 16:06:12 +01:00
2021-04-28 17:31:55 +01:00
2021-04-28 17:31:55 +01:00
2021-08-19 09:57:41 +01:00
2021-06-25 00:46:22 +02:00