ladybird/Libraries/LibWeb/Crypto
devgianlu 9240d38273 LibCrypto+LibTLS+LibWeb: Store EC key size + refactor serialization
In order for public/private key serialization to work correctly we must
store the size of the key because P-521 cannot be stored as full words
inside `UnsignedBigInteger` and therefore is exported as the wrong
length (68 instead of 66).

This makes it also possible to refactor some methods and cleanup
constants scattered around.

Gets almost all import/export tests, expect the JWK ones that calculate
the public key on export. The `SECPxxxr1` implementation currently fails
to do calculations for P-521.
2024-12-14 01:52:16 +01:00
..
Crypto.cpp LibWeb: Respect subarrays in Crypto#getRandomBytes 2024-12-10 06:44:00 -08: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+LibTLS+LibWeb: Store EC key size + refactor serialization 2024-12-14 01:52:16 +01:00
CryptoAlgorithms.h LibWeb: Implement ECDSA.importKey and ECDSA.exportKey 2024-12-03 13:20:51 +01:00
CryptoBindings.cpp LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
CryptoBindings.h LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
CryptoKey.cpp LibWeb: Reorganize definitions and includes to avoid circular references 2024-11-24 11:11:44 +01:00
CryptoKey.h LibWeb: Switch ECDH.generateKey to use internal keys instead of bytes 2024-11-27 10:59:48 +01:00
CryptoKey.idl Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
KeyAlgorithms.cpp LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
KeyAlgorithms.h LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
SubtleCrypto.cpp LibWeb: Remove dom_ from dom_exception_to_throw_completion 2024-12-09 20:02:51 -07:00
SubtleCrypto.h Everywhere: Include HashMap only where it's actually used 2024-12-09 12:31:16 +01:00
SubtleCrypto.idl Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00