mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 18:50:50 +00:00
LibWeb: Support SubtleCrypto.exportKey for RSA-OAEP in JsonWebKey format
This commit is contained in:
parent
2599142214
commit
1521a60a67
Notes:
sideshowbarker
2024-07-17 10:16:43 +09:00
Author: https://github.com/ADKaster
Commit: 1521a60a67
Pull-request: https://github.com/SerenityOS/serenity/pull/23579
13 changed files with 367 additions and 6 deletions
|
@ -39,6 +39,8 @@ public:
|
|||
void set_algorithm(JS::NonnullGCPtr<Object> algorithm) { m_algorithm = move(algorithm); }
|
||||
void set_usages(Vector<Bindings::KeyUsage>);
|
||||
|
||||
InternalKeyData const& handle() const { return m_key_data; }
|
||||
|
||||
private:
|
||||
CryptoKey(JS::Realm&, InternalKeyData);
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
|
@ -50,7 +52,7 @@ private:
|
|||
JS::NonnullGCPtr<Object> m_usages;
|
||||
|
||||
Vector<Bindings::KeyUsage> m_key_usages;
|
||||
InternalKeyData m_key_data;
|
||||
InternalKeyData m_key_data; // [[handle]]
|
||||
};
|
||||
|
||||
// https://w3c.github.io/webcrypto/#ref-for-dfn-CryptoKeyPair-2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue