Added Checks that the PublicKey is EC Key of a Supported Type. (#18408)
Added Checks that the PublicKey is EC Key of a Supported Type. (#18408)

mbedtls_pk_ec() requires verification that the input PublicKey is of a correct
EC type.
project-chip/connectedhomeip,nestlabs/connectedhomeip,project-chip/connectedhomeip,nestlabs/connectedhomeip,project-chip/connectedhomeip,nestlabs/connectedhomeip,nestlabs/connectedhomeip,nestlabs/connectedhomeip,nestlabs/connectedhomeip,project-chip/connectedhomeip,project-chip/connectedhomeip,nestlabs/connectedhomeip,project-chip/connectedhomeip