1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 14:47:35 +00:00

LibWeb: Implement SubtleCrypto.generateKey skeleton

We don't have any algorithms defined that actually support generateKey,
but now all the scaffolding is there.
This commit is contained in:
Andrew Kaster 2024-03-06 19:15:03 -07:00 committed by Andrew Kaster
parent 810be6af07
commit 0b4858e589
4 changed files with 68 additions and 2 deletions

View file

@ -36,6 +36,8 @@ public:
JS::NonnullGCPtr<JS::Promise> digest(AlgorithmIdentifier const& algorithm, JS::Handle<WebIDL::BufferSource> const& data);
JS::ThrowCompletionOr<JS::NonnullGCPtr<JS::Promise>> generate_key(AlgorithmIdentifier algorithm, bool extractable, Vector<Bindings::KeyUsage> key_usages);
JS::ThrowCompletionOr<JS::NonnullGCPtr<JS::Promise>> import_key(Bindings::KeyFormat format, KeyDataType key_data, AlgorithmIdentifier algorithm, bool extractable, Vector<Bindings::KeyUsage> key_usages);
private: