serenity
serenity copied to clipboard
LibWeb: Support generation of SubtleCrypto enough to load Discord login's QR Code
According to the latest web app information that I downloaded (https://discord.com/assets/81726.fd218f2db8ffabddf299.js), we need the following APIs on window.crypto.subtle:
- [x]
generateKey(algorithm: { name: "RSA-OAEP", modulusLength: 2048, hash: "SHA-256" }, keyUsages: [ "decrypt" ])https://github.com/SerenityOS/serenity/pull/23532 - [x]
exportKey(format: "spki", publicKey) - [x]
digest(algorithm: { name: "SHA-256" }) - [ ]
decrypt(algorithm: { name: "RSA-OAEP", hash: "SHA-256" }, privateKey)