ladybird/Libraries/LibWeb/Crypto
Timothy Flynn 64abc6101d LibWeb+WebWorker: Use IPC mechanics for structured serialization
Our structured serialization implementation had its own bespoke encoder
and decoder to serialize JS values. It also used a u32 buffer under the
hood, which made using its structures a bit awkward. We had previously
worked around its data structures in transferable streams, which nested
transfers of MessagePort instances. We basically had to add hooks into
the MessagePort to route to the correct transfer receiving steps, and
we could not invoke the correct AOs directly as the spec dictates.

We now use IPC mechanics to encode and decode data. This works because,
although we are encoding JS values, we are only ultimately encoding
primitive and basic AK types. The resulting data structures actually
enforce that we implement transferable streams exactly as the spec is
worded (I had planned to do that in a separate commit, but the fallout
of this patch actually required that change).
2025-07-18 10:09:02 -04:00
..
Crypto.cpp LibWeb: Remove bogus FIXME in Crypto::get_random_values 2025-06-25 12:21:28 +12:00
Crypto.h LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
Crypto.idl Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
CryptoAlgorithms.cpp LibCrypto+LibWeb: Check RSA keys validity on SubtleCrypto import_key 2025-06-25 12:21:28 +12:00
CryptoAlgorithms.h LibJS: Replace PropertyKey(char[]) with PropertyKey(FlyString) 2025-03-24 22:27:17 +00:00
CryptoBindings.cpp LibJS: Replace PropertyKey(char[]) with PropertyKey(FlyString) 2025-03-24 22:27:17 +00:00
CryptoBindings.h LibWeb: Parse JsonWebKey from string 2024-12-16 11:35:00 +01:00
CryptoKey.cpp LibWeb+WebWorker: Use IPC mechanics for structured serialization 2025-07-18 10:09:02 -04:00
CryptoKey.h LibWeb+WebWorker: Use IPC mechanics for structured serialization 2025-07-18 10:09:02 -04:00
CryptoKey.idl Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
KeyAlgorithms.cpp LibCrypto: Replace {Unsigned,Signed}BigInteger impl with LibTomMath 2025-05-23 11:57:21 +02:00
KeyAlgorithms.h LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
SubtleCrypto.cpp LibWeb: Only set prototype once for object with IDL interface 2025-04-20 18:43:11 +02:00
SubtleCrypto.h LibWeb: Remove useless JS::ThrowCompletionOr return types 2025-02-12 00:40:17 +01:00
SubtleCrypto.idl LibWeb: Update SubtleCrypto IDL according to latest spec 2024-12-18 13:18:40 +01:00