LibWeb: Implement AES-GCM.exportKey

This commit is contained in:
stelar7
2024-10-31 16:02:24 +01:00
committed by Andreas Kling
parent e53b3f5fb1
commit 3dd80d2a6e
Notes: github-actions[bot] 2024-10-31 22:35:08 +00:00
3 changed files with 70 additions and 0 deletions

View File

@@ -366,6 +366,7 @@ class AesGcm : public AlgorithmMethods {
public:
virtual WebIDL::ExceptionOr<JS::Value> get_key_length(AlgorithmParams const&) override;
virtual WebIDL::ExceptionOr<JS::NonnullGCPtr<CryptoKey>> import_key(AlgorithmParams const&, Bindings::KeyFormat, CryptoKey::InternalKeyData, bool, Vector<Bindings::KeyUsage> const&) override;
virtual WebIDL::ExceptionOr<JS::NonnullGCPtr<JS::Object>> export_key(Bindings::KeyFormat, JS::NonnullGCPtr<CryptoKey>) override;
static NonnullOwnPtr<AlgorithmMethods> create(JS::Realm& realm) { return adopt_own(*new AesGcm(realm)); }