Richard Levitte
ec061bf8ff
Make DH_check_pub_key() and DH_generate_key() safer yet
...
We already check for an excessively large P in DH_generate_key(), but not in
DH_check_pub_key(), and none of them check for an excessively large Q.
This change adds all the missing excessive size checks of P and Q.
It's to be noted that behaviours surrounding excessively sized P and Q
differ. DH_check() raises an error on the excessively sized P, but only
sets a flag for the excessively sized Q. This behaviour is mimicked in
DH_check_pub_key().
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22453 )
2023-11-06 07:55:01 +00:00
..
2023-10-26 15:55:50 +01:00
2022-05-24 14:11:20 +10:00
2023-10-19 10:15:56 +02:00
2022-10-05 14:02:03 +02:00
2023-01-31 11:10:22 +11:00
2023-10-25 09:40:48 +01:00
2023-10-26 15:25:47 +01:00
2022-10-05 14:02:03 +02:00
2022-05-24 13:16:06 +10:00
2023-09-07 09:59:15 +01:00
2023-10-26 15:55:50 +01:00
2023-09-07 09:59:15 +01:00
2023-10-10 20:36:06 +02:00
2023-10-30 07:59:06 +00:00
2023-09-07 09:59:15 +01:00
2023-10-24 17:30:58 +01:00
2023-09-07 09:59:15 +01:00
2022-10-05 14:02:03 +02:00
2023-09-07 09:59:15 +01:00
2023-11-06 07:55:01 +00:00
2023-10-11 16:22:27 +02:00
2023-09-07 09:59:15 +01:00
2023-11-01 17:34:05 +01:00
2023-09-07 09:59:15 +01:00
2023-10-04 11:02:00 +11:00
2023-11-06 07:55:01 +00:00
2022-10-05 14:02:03 +02:00
2023-11-03 21:08:22 +01:00
2023-10-11 16:22:27 +02:00
2021-06-23 23:00:36 +02:00
2023-11-03 09:10:19 +01:00
2023-10-26 15:21:16 +01:00
2023-01-31 11:10:22 +11:00
2023-10-04 07:52:41 +11:00
2023-01-31 11:10:22 +11:00
2023-01-31 11:10:22 +11:00
2023-09-07 09:59:15 +01:00
2023-01-31 11:10:22 +11:00
2023-10-26 15:55:50 +01:00
2023-10-18 16:52:45 +02:00
2023-09-07 09:59:15 +01:00
2023-09-28 14:23:29 +01:00
2023-10-26 15:55:50 +01:00
2023-10-26 16:03:48 +01:00
2023-09-28 14:23:29 +01:00
2023-09-07 09:59:15 +01:00
2023-10-05 08:09:13 +11:00
2023-11-03 21:08:22 +01:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2023-01-31 11:10:22 +11:00
2023-10-25 09:26:51 +01:00
2023-01-31 11:10:22 +11:00
2023-10-26 15:55:50 +01:00
2022-10-12 16:55:01 +11:00
2023-09-07 09:59:15 +01:00
2023-10-26 15:55:50 +01:00
2023-10-26 15:55:50 +01:00
2023-09-28 14:23:29 +01:00
2023-09-07 09:59:15 +01:00
2023-09-28 14:23:29 +01:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2023-10-26 15:48:00 +01:00
2022-05-03 13:34:51 +01:00
2023-10-10 15:37:41 +02:00
2023-07-21 10:19:19 +10:00
2023-09-07 09:59:15 +01:00
2023-09-22 20:42:48 +02:00
2023-09-07 09:59:15 +01:00
2022-10-05 14:02:03 +02:00
2022-07-20 07:28:17 +01:00
2023-09-07 09:59:15 +01:00
2022-01-12 20:10:21 +11:00
2023-09-28 14:23:29 +01:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2022-06-27 10:58:40 +02:00
2023-09-07 09:59:15 +01:00
2022-05-03 13:34:51 +01:00
2023-09-21 14:43:08 +02:00
2022-05-03 13:34:51 +01:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2023-10-26 15:45:41 +01:00
2022-10-12 18:02:12 +11:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2023-10-13 15:04:42 +02:00
2022-05-03 13:34:51 +01:00
2022-10-12 16:55:01 +11:00
2022-05-03 13:34:51 +01:00
2023-09-28 14:23:29 +01:00
2023-09-07 09:59:15 +01:00
2023-10-18 18:07:13 +02:00
2023-09-07 09:59:15 +01:00
2022-10-05 14:02:03 +02:00
2022-10-05 14:02:03 +02:00
2023-06-02 15:13:20 +10:00
2023-09-07 09:59:15 +01:00
2022-10-05 14:02:03 +02:00
2022-05-03 13:34:51 +01:00
2022-05-03 13:34:51 +01:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2023-10-20 09:48:34 +01:00
2021-06-24 14:48:15 +01:00
2021-06-24 14:48:15 +01:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2023-01-13 13:20:16 +00:00
2022-09-05 10:20:30 +10:00
2023-10-26 15:55:49 +01:00
2023-10-26 15:55:49 +01:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2022-05-03 13:34:51 +01:00
2023-09-07 09:59:15 +01:00
2021-07-15 09:33:04 +02:00
2022-07-22 14:42:13 +02:00
2022-11-14 07:47:53 +00:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2023-09-11 10:15:30 +02:00
2023-09-07 09:59:15 +01:00