Andrew Kaster
c4be9318a2
Tests: Only use a 256-bit RSA key in SubtleCrypto generateKey test
...
Until we get a better performing RSA keygen algorithm, this test times
out occasionally in CI with a 512-bit key.
2024-03-14 17:57:37 -06:00
Andrew Kaster
1521a60a67
LibWeb: Support SubtleCrypto.exportKey for RSA-OAEP in JsonWebKey format
2024-03-14 17:57:37 -06:00
Andrew Kaster
a9d240c647
LibWeb: Implement SubtleCrypto.generateKey for RSA-OAEP
...
This patch implements and tests window.crypto.sublte.generateKey with
an RSA-OAEP algorithm. In order for the types to be happy, the
KeyAlgorithms objects are moved to their own .h/.cpp pair, and the new
KeyAlgorithms for RSA are added there.
2024-03-13 15:31:00 -06:00
Andrew Kaster
0a6f195a71
LibWeb: Implement usages property for CryptoKey
...
And set it from the only place we currently create a CryptoKey, in
importKey.
2024-03-13 15:31:00 -06:00
Johannes Røsvik
bad7f0091f
Tests/LibWeb: Add test for SubtleCrypto digest
2024-03-03 08:41:32 +01:00
Andrew Kaster
bf32a2027b
LibWeb: Add happy path test for SubtleCrypto importKey and digest
2024-01-23 14:07:06 -07:00