CryptoKey structured serialization was cloning the internal algorithm slot as a generic JS object. After deserialization, WebCrypto operations such as exportKey() expected the slot to still be a native KeyAlgorithm subclass and crashed when downcasting it. Serialize the stored key algorithm with an explicit tag and reconstruct the appropriate KeyAlgorithm subclass during deserialization. Also keep EC private-key serialization aligned by encoding nested public keys as EC public-key payloads rather than tagged top-level handles. |
||
|---|---|---|
| .. | ||
| derive_bits_keys | ||
| digest | ||
| encap_decap | ||
| encrypt_decrypt | ||
| generateKey | ||
| import_export | ||
| serialization | ||
| sign_verify | ||
| wrapKey_unwrapKey | ||
| historical.any.worker.txt | ||