pub async fn import_public_key_raw(
variant: EcdhVariant,
raw: Vec<u8>,
) -> Result<PublicKey, Error>Expand description
Import a public key as an uncompressed SEC1 point (04 ‖ x ‖ y;
65 bytes for P-256, 97 bytes for P-384 — WebCrypto’s raw
format). Anything else — including compressed points and points
not on the declared variant’s curve — fails with
error.invalid-key. public-key.export-key-raw returns this
same form.