David Benjamin 754bcf6dcb Don't expose EVP_PKEY internal representation through EVP_PKEY_assign
While EVP_PKEY_RSA, EVP_PKEY_DSA, and EVP_PKEY_EC have publicly-exposed
internaly representations, other EVP_PKEY types to not. EVP_PKEY_assign
should not allow callers to manipulate those representations.

As part of this, teach EVP_PKEY_assign_RSA, etc. to find their method
tables directly, rather than indirecting through an integer. This makes
those EVP APIs static-linker-friendly.

Bug: 618, 497
Change-Id: Ic45a7514e9a3adc505759f2327129f13faf03a65
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/60645
Auto-Submit: David Benjamin <davidben@google.com>
Reviewed-by: Bob Beck <bbe@google.com>
Commit-Queue: Bob Beck <bbe@google.com>
2023-06-09 21:17:26 +00:00
..
2022-01-07 18:41:53 +00:00
2016-08-03 21:37:31 +00:00
2023-06-08 21:49:20 +00:00
2023-06-08 17:16:14 +00:00
2023-04-26 16:51:21 +00:00
2019-01-03 21:46:45 +00:00
2023-06-02 05:55:45 +00:00
2015-05-12 00:09:57 +00:00
2023-03-16 23:46:11 +00:00
2019-01-03 21:46:45 +00:00
2018-09-06 20:07:52 +00:00
2023-03-15 22:55:24 +00:00
2018-09-06 20:07:52 +00:00
2020-09-30 20:32:54 +00:00
2022-10-04 22:11:36 +00:00
2023-06-06 18:25:06 +00:00
2015-05-08 18:02:02 +00:00
2018-05-08 01:32:14 +00:00
2019-04-17 20:57:57 +00:00
2023-02-11 17:32:19 +00:00
2022-08-13 16:07:16 +00:00
2021-07-15 19:18:41 +00:00
2023-03-30 17:05:20 +00:00
2021-06-22 22:45:22 +00:00
2022-09-06 17:30:47 +00:00
2023-04-11 21:40:44 +00:00
2023-06-09 02:57:17 +00:00
2020-04-15 21:23:37 +00:00
2019-07-10 21:14:32 +00:00
2015-09-14 23:59:37 +00:00
2023-06-08 17:16:14 +00:00
2021-10-05 17:57:43 +00:00